Just started learning php and it's not going well. I am trying to get this code to work
But it keeps giving me errors? Can anyone let me know what I have done wrong, I have tried a few things but nothing is working for me.
Also, what is the best site to learn php from scratch?
PHP:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "hxxp://www.mydomain.com/trackingscript.php";
else
echo "<img src="hxxp://www.mydomain.com/image.jpg">";
}
?>
But it keeps giving me errors? Can anyone let me know what I have done wrong, I have tried a few things but nothing is working for me.
Also, what is the best site to learn php from scratch?