Membuat Auto Surf dengan PHP
July 9th, 2008 by dr.emi
Pernah denger autosurf kan ? nyang kaya web ini ni:
http://www.trafficracer.com/auto-surf.php?user=31251
nah ntu bisa dibikin sederhana pake META REFRESH, tapi kali in igw gabungin make PHP untuk merandom halaman na…
Simak yak.
Kita ga pake Database, langsung make Array untuk halaman yang bersangkutan ajah. Disini gw pake Frame bwatmenampilkan halaman hasil random na:
ni bwat index.html na
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Tutorial Photoshop, SEO, CSS</title> </head> <frameset rows="120,*" frameborder="yes" border="0" framespacing="0"> <frame src="top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> <frame src="target.html" name="mainFrame" id="mainFrame" title="mainFrame" /> </frameset> <noframes><body> </body> </noframes></html>
tros bikin masing masing source bwat frame top dan target.
File top.php
Code:
<html>
<?
function recoverPass($length)
{
$temp_recpass="";
srand ((float) microtime() * 10000000);
$input = array (
"http://dremi468.blogspot.com",
"http://www.csslovers.co.cc",
"http://www.dremi.info/tutorial/photoshop/merancang-website-full-abis.html",
"http://www.dremi.info/tutorial/photoshop/sony-ericsson-logo.html"
);
$rand_keys = array_rand ($input, 24);
for ($i=0; $i<$length; $i++)
{
$temp_recpass = $temp_recpass . $input[$rand_keys[$i]];
}
return $temp_recpass;
}
$temp_recpass = recoverPass(1);
if($temp_recpass=='') { $pageLoad = "http://dremi468.blogspot.com"; } else { $pageLoad = $temp_recpass; }
$randRefreshTop = rand(60, 120);
$randRefreshBot = rand(30, 60);
?>
<head>
<title>Refresh JavaScript Example</title>
<META HTTP-EQUIV="refresh" CONTENT="<? echo $randRefreshTop; ?>">
<SCRIPT LANGUAGE="JavaScript">
<!--
function refreshFrame() {
parent.mainFrame.location.href = '<? echo $pageLoad; ?>';
setTimeout('refreshFrame()',1000*<? echo $randRefreshBot; ?>);
}
refreshFrame();
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 11px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<!--
Use the "onload" event to start the refresh process.
-->
<body>
<center>
Page Load: <strong style="color:#0099FF"><? echo $pageLoad; ?></strong> Top: <strong style="color:#0099FF"><? echo $randRefreshTop; ?></strong> & Bottom: <strong style="color:#0099FF"><? echo $randRefreshBot; ?></strong>
<br>
<?
if ($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] != ""){
// for proxy
$IP = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
$proxy = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$host = @gethostbyaddr($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]);
}else{
// for normal user
$IP = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$host = @gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);
}
echo "IP: $IP | PROXY: $proxy | HOST: $host <BR>";
?>
<br>
<a href="http://dremi468.blogspot.com/2008/06/creating-corporate-writing-style.html" target="_blank"><img src="http://i175.photobucket.com/albums/w126/hairulazami/banner%20468/seo-articles468.gif" border="0" alt="Photobucket"></a>
</center>
</body>
</html>
contoh diatas array halaman URL lu bisa tambahin sendiri.
nah ni bwat target.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> </body> </html>
kalo lu liat target.html halaman na kosong melompong, nah itu memang tugasnya hanya bwat nerima hasil load halaman yang ditampung dalam array pada Top Frame.
Cobain yak… asik kok..
Hello my fox! Glad to see you today!If you love my tutorial, please chose any action from the left button.
1 Comment
Just say it with fill the comment form.
My Friends Link
10001 Inspirasi 4w1n.Blogspot.Com Afial blog Afotsum.CO.NR Alfikry Blogspot Ancaran.Com Andrian.Blogdrive.Com AngsaRea AraZidsi Arteknindo.Com ArtheZoo.TK Articlecillin Belajar Gratis Blog Si Bochan BloGila_U2.Blogdrive.Com BOGIRO Book and Movie Review Can_Dra Blog Catalog-Tutorial CatatanLou.110mb.Com Coin-Kevin DataBagus.Com Dede Permana, S. Kom (PT. BITA Bandung) Deniall.Com Desire 8 Distro & Clothing Diplomski.Com Ensept.Com Esato.Com Faris Wijaya FarisW.Com Blog Fendix Wordpress Foxxed-ART Gadget and Tech Gedex.Web.ID GejalaGila.Com GraphicVN HendiHen.Com Henny Indrianty Hmzaky-dot.Blogspot.Com I D I K IDWebHost.BIZ IDWebHost.Com Ilivetodesign.Com Ilmu Grafis Inez Nugroho Irenk Design IT Club Lombok Jafair.Multiply.Com Jaloe Blog Spot Jenggot Community JiranKubur Jurnal Jaloee K B M S Blog Klik-Kanan.Com LearnSimply LensaDarbi MadeInAra - Graphic Design Mark Xaviar Mifka.Multiply.Com More Tech Tips! Ngetixide.Wordpress.Com Nursingmedia.Blogspot.Com OneMoment.CO.NR PC MILD Percikan Iman Bandung Profit Trading Forex Pulsa Center PuwaSila Denpasar Rumah Sakit Herbal SEO Articles and Newsletters Seputar Info Wanita {Niella Anwar} SMKN 3 Batu Supermodel and Celebrity Tedy Blog TeguhNET Articles The-Sulton.Com TopBlogArea.Com Tutorial Flash - Blog Apri Tutorial Website UdaraMaya.Com WebDesigner.Web.ID Yudha Yudhanto, S. KomSupporter
Sponsors
Subcribe RSS Feed
Flick Group dr.emi
Contact The Doctor
Head Studio:
dr.emi creative design
Jl. Tubagus Ismail Dalam No. 18
Gg. Kubang Sari II Bandung
Jawa Barat Indonesia 40132
Email:
info[at]dremi.net
webmaster[at]dremi.info
YM: hairulazami
GTalk: dremi007
Skype: hairulazami
dr.emi creative design
SEO Articles & Newsletters
Forum dremi.info
Clients
Partner
Free Download
Recent Comments
- dr.emi: pake netbeans aja berur biar gampang :D...
- widya: maaf mau numpang nanya cara instalasi apache tomcat di windo...
- dr.emi: OK bro, sama sama....
- Mahfudin: Terima ksih banyak boss, ini yang saya cari semoga amal baik...
- kang adang: INOVATIF... GAK RUGI MAMPIR KESINI... TERIMAKASIH ILMUNYA......
- dr.emi: @fahmi ikutin air mengalir aja bero......
- ila: like this rodi hartono, teteplah jadi seorang rodi, jangan...
Recent Posts
- Ajaran Ahmadiyah dan Keyakinannya yang Cacat dan Menyesatkan
- Vacancy for Software Development Engineer
- Sony Ericsson Xperia X10 - Ponsel Pertama Menggunakan Android OS
- Lowongan Kerja Master PHP
- Waspada Doa Orang Terzalimi (PercikanIman.ORG)
- Ultah dremi.INFO ke - 5 (050510)
- Download file tutorial Photoshop Legendaris dr.emi + PSD
- Panen Projek dengan Teknik DOBEL PEDAL
- Jalan ini tak semulus yang gw bayangin
- Great themes for Ubuntu 9.04 and ubuntu 9.10 Karmic Koala
Archives
Popular Tags
3D illustration abstract design adsense aero button animation banner clean navigation colouring layer CSS tutorials effect form interface glassy effect google gradient style GUI photoshop design hacker handcoded HTML IT job jQuery layer mask layer style photoshop logo lowongan kerja merancang web pen tool photo retouch photoshop design PHP PHP Advance PHP login product demo relationship search engine shapping spirit tab link text effect transparent gradient web articles web based software web design web development web header web layout web tips

























PSD Files
PHP Source Code






