How do I detect the directory a php file is in

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-04-02T20:43:40Z Indexed on 2010/04/02 20:53 UTC
Read the original article Hit count: 169

Filed under:

I have a PHP file that I need it to detect it's directory it's in. In my case I want it to return C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\

I think that this is pretty straightforward but if there is something you don't understand just comment

© Stack Overflow or respective owner

Related posts about php