PDA

View Full Version : absolute path: how to find out?


spybreak1979
11-16-2002, 12:59 PM
i have a file called 1.php
Now, I want to find out the path of that file. Is there any function to do that?

SYP}{ER
11-16-2002, 03:47 PM
$_SERVER["SCRIPT_FILENAME"] might do the trick. Try $_SERVER["PHP_SELF"] too :)

spybreak1979
11-16-2002, 04:39 PM
i found another way
echo system("pwd");