How do I make these PHP have sex with each other to join as one?
and
Thanks in advance for any help.
Code:
<?php
$cloaked_url = "http://www.google.com"; // devs go here
$normal_url = "http://www.yahoo.com"; // everyone else goes here
$tracking_ref = $_SERVER['HTTP_REFERER'];
if(strpos($tracking_ref,"dev.facebook")){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . $cloaked_url );
} else {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . $normal_url );
}
?>
Code:
if (stristr($_SERVER["HTTP_REFERER"], “dev.facebook”)) $cloak = 1;
if (stristr($_SERVER["HTTP_REFERER"], “devrs001.facebook.com”)) $cloak = 1;
if (stristr($_SERVER["HTTP_REFERER"], “/intern/ads/review.php”))$cloak = 1;)
Thanks in advance for any help.