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 Geoff Berrow on 06/10/06 12:59

Message-ID: <448ac06c$0$74158$edfadb0f@dread14.news.tele.dk> from .:J:.
contained the following:

>
>This sound a bit easier, then....,,, could my php code look like this:
>
> <? php print
>str_replace("/","",strrchr("$HTTP_SERVER_VARS['REQUEST_URI']", "/"));?>
>?
>
>I tried it, but am told from my webserver that I can not edit my php-file
>with that code ?

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

 

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

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