you could simply use $HTTP_HOST.$PHP_SELF

of even better if look here:
http://www.php.net/manual/en/language.variables.predefined.php


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] tracking the current url



hi

Can you tell me how to  track the current url by using PHP? for example,
Mike is visiting http://www.celebritieszones.com/showthumb/britney_spears/1/
and i wanna make a PHP script so it tells Mike that he is currently browing
http://www.celebritieszones.com/showthumb/britney_spears/1/

I tried to use

$url_array=explode("\",$REQUEST_URI);

But it didn't work. It showed Array instead of the URL when i tried to
display it.

Please help. Thanks

-------
free celebritieszones email:
http://www.celebrititeszones.com/login.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to