Would this work so the myString is ramdomly implimented <? $myString = "<? if(!$_SERVER[‘HTTP_REFERER’]){ header("HTTP/1.0 404 Not Found"); } else { header("Location: http://??????????????????.com/BDHDHDHDJ/"); } ?>"; $random_number = rand(1,4); if($random_number == 1){ echo $myString; } ?> Thanks
since it is string, you need to replace " with \" <? $myString = "<? if(!$_SERVER[‘HTTP_REFERER’]){ header(\"HTTP/1.0 404 Not Found\"); } else { header(\"Location: http://??????????????????.com/BDHDHDHDJ/\"); } ?>"; $random_number = rand(1,4); if($random_number == 1){ echo $myString; } ?> PHP:
Why would you echo plain text code? What purpose does that serve? Why not just use the actual php code in the if ($random_number == 1) section?
yeah, I also agree with premiumscripts. What sense does it make to echo a code in plain text? Use it direct, and if at all want execute it other way round, why not eval it?