Forum Moderators: coopster

Message Too Old, No Replies

how to get full address of the website dynamically?

         

php4om

1:06 pm on Jan 6, 2004 (gmt 0)

10+ Year Member



how to get full address of the website dynamically?
like www.yahoo.com/op/guy/123/
using server var($_SERVER).

i just want path till current working dir from www.yahoo.com/op/guy/123/ page.php i don't need it.

jatar_k

4:31 pm on Jan 6, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld php4om,

Take a look at the list Server variables: $_SERVER [ca.php.net]

I would think you could use a combination of HTTP_HOST and PHP_SELF or SCRIPT_FILENAME