hi
i wan2 know if there is any function in PHP which returns the path of file on any server like that server.mappath(filepath and name) in ASP ?
Is there any function in PHP like that Server.mappath in ASP
Moderator: General Moderators
how about $_SERVER['PHP_SELF']
Other that may be useful can be found here - http://uk.php.net/reserved.variables
Mark
Other that may be useful can be found here - http://uk.php.net/reserved.variables
Mark
Probably you're looking for __FILE__ constant:
Code: Select all
echo __FILE__; // echoes /home/www/yousite.com/yourfile.php-
darkforcesjedi
- Forum Newbie
- Posts: 5
- Joined: Sat Mar 27, 2004 1:33 pm