hey guys, I don't know what command I need to use. I want to view the full path on the server, which would look something like this /home/tuxphp/public_html/findpath/filename.php
I found $PHP_SELF, but that will only give me /findpath/filename.php I need the full path starting with /home
Thanks
[Solved] Viewing Full Path On The Server
Moderator: General Moderators
[Solved] Viewing Full Path On The Server
Last edited by jimbo on Wed Feb 23, 2005 12:42 pm, edited 1 time in total.
Re: Viewing Full Path On The Server
http://php.net/manual/en/language.const ... efined.phpjimbo wrote:... which would look something like this /home/tuxphp/public_html/findpath/filename.php
Code: Select all
echo __FILE__;