hasil test
Posted by ecek2 on April 19, 2008
kacau pake tag code nya.
emang bener2 bosok wp nih buat nulis2 scripting.
hu hu hu hu
Posted in Uncategorized | No Comments »
Posted by ecek2 on April 19, 2008
kacau pake tag code nya.
emang bener2 bosok wp nih buat nulis2 scripting.
hu hu hu hu
Posted in Uncategorized | No Comments »
Posted by ecek2 on April 19, 2008
Tool ini untuk memindahkan file dari server lain ke server ini
Jangan pernah “save as” dengan nama yg sama dengan file yang sudah ada
So, hati2 yah.
<?php
set_time_limit(0);
if(isset($_POST[name]) && isset($_POST[file]))
{
$starttimer = time()+microtime();
$filename = $_POST[name];
$fp=fopen($_POST[file], “r”);
$somecontent=”";
while (!feof($fp)) {
$somecontent = fread($fp, 8192);
if (!$handle = fopen($filename, ‘a’)) {
echo “Cannot open file ($filename)”;
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
echo “Cannot write to file ($filename)”;
exit;
}
}
echo “tersimpan di file “.$_POST[name].” “.filesize($_POST[name]).” bytes”;
fclose($fp);
fclose($handle);
$stoptimer = time()+microtime();
$timer = round($stoptimer-$starttimer,4);
echo “
proses : $timer detik.”;
}
?>
Posted in Uncategorized | No Comments »
Posted by ecek2 on April 19, 2008
<?
$id=$_GET[yid];
if(isset($id))
{
$yahoo=implode(”",file(”http://opi.yahoo.com/online?u=$id&m=a&t=1″));
// Buat ngecek yg online langsung ke yahoo aja, gak perlu ke invisible.ir
if($yahoo==”01″){echo $id.” sedang online”;}
// Kalo terbukti gak online, baru deh ke invisible.ir
if($yahoo==”00″) {
$data=implode(”",file(”http://invisible.ir/getstatus?yahooid=$id”));
if(eregi(”Invisible”, $data)){echo $id.” sedang invisible”;}
if(eregi(”busy”, $data)){echo “Maaf… server sibuk”;}
if(eregi(”Offline”, $data)){echo $id.” sedang offline”;}
}
}
?>
Posted in Uncategorized | No Comments »