getting the phsyical path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

Hi,

 

Sorry if this is a dumb question. Is there a way in php to get the
physical path the document root of my website? I want to open a file in
the root of my web server, i.e. "/", but I won't always know what the
physical path to the web root is, and it will vary depending on the
machine the web app is running on. I've tried using "realpath" (e.g.
realpath("/")) but it doesn't really work. Thanks.


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux