Self referencing

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

Leave a Reply

Your email address will not be published. Required fields are marked *