Preserved Topic: $DOCUMENT_ROOT??? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-15-2001 02:35
I was wondering if there was a way to get the name of a directory into a PHP script without actually knowing the name of it? For example, if I have a bunch of sports teams, and each team has it's own directory, with the directory name being the teams name. Each directory will have it's own index page. I want to be able to access the directory name from within the script to be able to derive the teams name from it. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 12-15-2001 04:09
getcwd() will get the current working directory from the root of the server |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-15-2001 05:32
Thanks Bitdamaged |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-15-2001 12:32 |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-15-2001 22:21
Thanks maX! |