Reply to Re: Self referencing

Your name:

Reply:


Posted by TreatmentPlant on 12/07/61 11:46

Kevin Wells wrote:
> In message <44521287$0$30719$5a62ac22@per-qv1-newsreader-01.iinet.net.au>
> TreatmentPlant <treatmentplant@DIESPAMMERS.iinet.net.au> wrote:
>
>> How can I write a PHP code to find the URL on which the code the itself
>> is running?
>>
>> Sorry about the question: it's a bit difficult to describe, so here is
>> what I am trying to achieve...
>>
>> ...in sort of LogicCode
>> If this is NOT the home page then
>> associate the company logo with a link to the home page
>> else
>> just display the logo without any linking reference.
>>
>>
>>
>> TIA
>
> On the home page have something like this
>
> <? $page="home" ?> and on the other pages
> <? $page="nothome" ?>
>
> Then where you want the image to be have
>
> <?
>
> if ($page=="nothome") {
> Code fopr company logo and link to home page code
> }
> else
> {
> Code for logo withouth link to home page
> }
> ?>
>
>
>
>
>
Thanks all,

I have implemented Kevin's suggestion and it works like a charm.

[Back to original 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

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