Ecek2’s Weblog

Just another WordPress.com weblog

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

.chartku {width:20px;height:100px;position:static;background:lime;float:left;border-right:1px solid red;border-top:1px solid;text-align:center;color:black;font-size:8pt}

905070306080302063

Posted in Uncategorized | Leave a Comment »

test [code]

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.

Save as :

Link :

<?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 | Leave a Comment »

test

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 | Leave a Comment »

Hello world!

Posted by ecek2 on March 15, 2008

Posted in Uncategorized | 1 Comment »