Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP troubles

Name: Anonymous 2006-01-01 19:01

Are there any predefined variables in php that display the directory that the script is currently being run? The first directory; I mean, not the full path since the doccument root.

If not, is there any way to work around it/remove certain text from a string?

Name: Anonymous 2006-01-02 3:45

>>4
basename(dirname($_SERVER[PHP_SELF])) is the "official" way to do it, I expect, and might be more readable.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List