guess documentroot

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

 



Hey all!

Is it possible to get the path of a file relative to the document root of
the webserver using php?
For example...

if we have a script like
http://localhost/mydir/myseconddir/index.php

is there a way to get that it's runing on
/mydir/myseconddir/

??

something like getcwd() but webserver relative, not filesystem.

thanks a lot.
greetings!

[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