You are here: Re: $HTTP_SERVER_VARS['REQUEST_URI'] - help needed « All PHP « IT news, forums, messages
Re: $HTTP_SERVER_VARS['REQUEST_URI'] - help needed

Posted by .:J:. on 06/10/06 13:29

> Lose the quotes.
>
> <? php print
> str_replace("/","",strrchr($HTTP_SERVER_VARS['REQUEST_URI'], "/"));?>
> ?>
>
> This might work too.
>
> <? php print
> str_replace("/","",strrchr($_SERVER['REQUEST_URI'], "/"));?>
> ?>
> --
> Geoff Berrow 0110001001101100010000000110
> 001101101011011001000110111101100111001011
> 100110001101101111001011100111010101101011

Hi Geoff

It worked.
Now, how about if I'd like to remove "%20" from the URL also. so that
www.domain.com/content%20here would result in "content here" ??

I think it's a matter of multiple string replace ? How do I do that

Rgds
Jakob

 

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

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