You are here: Re: how to get url ? « PHP Programming Language « IT news, forums, messages
Re: how to get url ?

Posted by Snef on 09/01/06 08:44

Check it with phpinfo(); and see if it is there anyway!

Donny Riyadi wrote:
> Hi Joe,
> it still doesn't work. Any Idea ??
>
> Donny
>
> Joe Molloy schrieb:
>> Try $_SERVER['REQUEST_URI']
>>
>> Joe
>>
>>
>> "Donny Riyadi" <donnyriyadi@arcor.de> wrote in message
>> news:44f6e673$0$26950$9b4e6d93@newsspool4.arcor-online.net...
>>
>>> 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
>>
>>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация