Forum Moderators: coopster

Message Too Old, No Replies

Function to return current working dir - Easy one

         

DFrag

11:48 pm on Nov 26, 2003 (gmt 0)

10+ Year Member



Hello all,

Just a quick and hopefully simple one....

Is there a function in PHP that returns your current working directory?

Thanks

DFrag

12:03 am on Nov 27, 2003 (gmt 0)

10+ Year Member



Never mind people....

The answer is $document_root. I know this doesn't give me the current working directory... But it's close enough.

jatar_k

12:26 am on Nov 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



look through these
$_SERVER [ca.php.net]

DFrag

12:41 am on Nov 27, 2003 (gmt 0)

10+ Year Member



Thanks for that..
I'll have a flick through

coopster

12:10 pm on Nov 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



getcwd [php.net]