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..
Popularity: 9% [?]
Hello my fox! Glad to see you today!If you love my tutorial, please chose any action from the left button.
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 Ubaid UdaraMaya.Com WebDesigner.Web.ID Yudha Yudhanto, S. KomAdvertise
Sponsors
Most Popular Posts
- Membuat Manajemen Hak Akses User dengan Codeigniter
- Interactive Ajax Data Management with Codeigniter
- Web Design Layout Plus Implementasi jQuery Tab Content
- Simple Swing Login Form And getText()
- Web Base Controller System with NirCMD
- Create a simple application to open an EXE file on the window with JAVA
- How to Check Username Availability using jQuery + PHP
- dreLogin v.2.0 Has Release
- The Chain Tutorial from FuelYourCreativity
- Email untuk Pak ESBEYE di HUT RI ke 65
Category
Subcribe RSS Feed
Translate
Flick Group dr.emi
dr.emi creative design
SEO Articles & Newsletters
Forum dremi.info
Free Download
Recent Comments
- dr.emi: @ade itu make toggle nya jQuery: http://api.jquery.com/slid...
- dr.emi: ma sama..... mas berok...
- dr.emi: ada mas berok: http://www.dremi.info/tutorials/jquery/drelo...
- datih: apakah ada syntak Log-in php ???...
- Armin: ngakalin rounded corner biar compatible di semua browser kek...
- Armin: edan ini, tutorialnya langsung sehalaman...gkgkk.. sukses b...
- erny: kereeennn... makasiihhh... kapan2 balik lg! hehehe. :D...
Recent Posts
- MARJINAL DI TVONE "RADIO SHOW"
- Mail Yahoo make me frustrating
- Sharing Pengalaman menggunakan CI dan CakePHP
- Lowongan Kerja dr.emi creative design - Oktober 2011
- Happy Eid Mubarak - May God Bless You!
- Lowongan untuk PHP Programmer (PT Xsis Mitra Utama)
- Fenomena ustad/ustazah jadi2an di tipi sedang marak
- Sayang sekali tak dapat nonton Marky Ramones
- [FIX] Installing Ruby on Rails 3, MySQL and SOLVE few problem on UBUNTU 10.10 (Maverick)
- Small Tip, big solution in SVN Problem
Archives
Popular Tags
3D illustration abstract design adsense aero button animation banner clean navigation codeigniter colouring layer CSS tutorials effect form interface glassy effect google gradient style GUI photoshop design hacker handcoded HTML indonesian culture IT job jQuery layer mask logo lowongan kerja merancang web pen tool photo retouch photoshop design PHP PHP Advance PHP login php programmer product demo relationship search engine shapping spirit text effect transparent gradient web articles web design web development web header web layout web tips





















PSD Files
PHP Source Code






