You are here: Re: 'nested conditional' that can identify parent page? « PHP Language « IT news, forums, messages
Re: 'nested conditional' that can identify parent page?

Posted by Alan Jones on 05/14/07 01:32

On Sat, 12 May 2007 23:24:25 -0400, Norman Peelman
<npeelman@cfl.rr.com> wrote:

>if (($_SERVER['REQUEST_URI'] == '/index.php') ||
>($_SERVER['REQUEST_URI'] == '/'))
>{
> include('signature.php');
>}

Thank you very much, Norm. Your script above is now working for me.
I took out the || ($_SERVER['REQUEST_URI'] == '/') part. It didn't
end up being necessary. And, I'm using PHP_SELF. Anyway, the
problem was, I needed to use the local file system path to the
include, instead of a http web path. Thanks again, it was kind of
you to help. :)

 

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

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