Re: how to get url ?
- From: "Joe Molloy" <molloy_joe@xxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 18:06:20 +0100
Try $_SERVER['REQUEST_URI']
Joe
"Donny Riyadi" <donnyriyadi@xxxxxxxx> wrote in message
news:44f6e673$0$26950$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm using mod_rewrite in .htaccess on my homepage.
for example :
http://www.test.com/sony
will be rewrited to
http://www.test.com/company.php?name=sony
but I don't use the R option in the .htaccess so the shown url is still
the http://www.test.com/sony
My question is : if I use $_SERVER['PHP_SELF'] I get the
/company.php?name=sony not the /sony. How to get the /sony ??
Thanks
Donny
.
- References:
- how to get url ?
- From: Donny Riyadi
- how to get url ?
- Prev by Date: Re: What editor is the most common in PHP developer?
- Next by Date: Re: Typecast problem in PHP 5.0.4
- Previous by thread: how to get url ?
- Next by thread: Re: Extraction of .gz files in php.
- Index(es):