PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Shendemiar
Forum Contributor
Posts: 404 Joined: Thu Jan 08, 2004 8:28 am
Post
by Shendemiar » Sun Jan 11, 2004 11:39 am
Is there a command or function that could tell the documents location: a web adress or a folder on computer?
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Sun Jan 11, 2004 12:35 pm
Check out: [php_man]filesystem[/php_man] functions
Your answer might be there.
Shendemiar
Forum Contributor
Posts: 404 Joined: Thu Jan 08, 2004 8:28 am
Post
by Shendemiar » Sun Jan 11, 2004 1:01 pm
Thanks, found a buch of helpful functions!
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Sun Jan 11, 2004 3:44 pm
$PHP_SELF ?
JAM
DevNet Resident
Posts: 2101 Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:
Post
by JAM » Sun Jan 11, 2004 9:50 pm
Pyrite wrote: $PHP_SELF ?
Rather: $_SERVER["PHP_SELF"] or __FILE__
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Sun Jan 11, 2004 10:32 pm
Of course.