![]() Preserved Topic: $DOCUMENT_ROOT??? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: New Jersey, USA |
![]() 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 |
![]() getcwd() will get the current working directory from the root of the server |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() Thanks Bitdamaged |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() Thanks maX! |