Page 1 of 1

Way to know documents location?

Posted: Sun Jan 11, 2004 11:39 am
by Shendemiar
Is there a command or function that could tell the documents location: a web adress or a folder on computer?

Posted: Sun Jan 11, 2004 12:35 pm
by m3mn0n
Check out: [php_man]filesystem[/php_man] functions

Your answer might be there.

Posted: Sun Jan 11, 2004 1:01 pm
by Shendemiar
Thanks, found a buch of helpful functions!

Posted: Sun Jan 11, 2004 3:44 pm
by Pyrite
$PHP_SELF ?

Posted: Sun Jan 11, 2004 9:50 pm
by JAM
Pyrite wrote:$PHP_SELF ?
Rather: $_SERVER["PHP_SELF"] or __FILE__

Posted: Sun Jan 11, 2004 10:32 pm
by Pyrite
Of course.