Membuat Script Auto Redirect Dengan Menggunakan PHP

Berikut adalah contoh script PHP untuk membuat sebuah halama Redirect.

<?php
$redirect = ‘https://ivntea.wordpress.com&#8217;;
echo “<br><br><br><br><br><h2><center><font face=\”tahoma\” color=white>Click <a href=\”$redirect\”>here</a> if your browser does not automatically redirect you</font></center>”;
?>
<SCRIPT LANGUAGE=”JavaScript”>
redirTime = “2550”;
redirURL = “<?php echo $redirect ?>”;
function redirTimer() {
self.setTimeout(“self.location.href = redirURL;”,redirTime);}
</script>
<BODY onLoad=”redirTimer()” bgcolor=#003366>

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s