PHP If URL Statement
<p>I need to do some basic if URL statement stuff but I know <em>nothing</em> about PHP. I've tried a few examples I've found online but they don't seem to work.</p>

<p>Note: this is for a wordpress blog if that makes a different.</p>

<p>I want a "PHP IF URL" statement to do the following:</p>

<p>If URL referrer = twitter.com then echo </p>

<pre><code>"Follow us on &lt;a href="twitter.com/example"&gt;Twitter&lt;/a&gt;
</code></pre>

<p>If URL referrer = facebook.com then echo </p>

<pre><code>"Follow us on &lt;a href="facebook.com/example"&gt;Facebook&lt;/a&gt;
</code></pre>

<p>If no url referrer or none of the above echo "Follow us on Nothing"</p>
