Hey dudes,
I've made a quick little bar at the top of your page that will have a button saying 'Go Live', saving you the trouble of actually having to TYPE ALL OF THAT IN YOURSELF  .
Here's the code, but if before anything in your page (Right after the <body> tag)
Code:
<?php
$ifLocalhost = $_SERVER['SERVER_NAME'];
$realLive = "http://www.google.ca";
if ($ifLocalhost=="localhost") {
echo "<div style='position:absolute;margin-top:0px;background:#212121;color:#ffffff;height:30px;padding:10px;width:99%;text-align:right;z-index:9001;opacity:0.5;margin:0px auto;left:0px;top:0px;'><a href='$realLive' style='background:#888888;color:#000000;font-weight:700;border:2px solid black;padding:8px;'>Go Live</a> </div>";
}
?>
 Plus this will only show up on Localhost!
|