06/12/12 21:01:10
<?php
ini_set('user_agent', $user_agent.'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)');
$string_contents = @file_get_contents("URLリンク(localhost:8000)) or $string_contents =file_get_contents("check index\check1\default.php");
$string_contents = str_replace(",", "\n", $string_contents);
if ($string_contents) {
$fp = fopen('check index\check1\list.php', 'w');
fputs($fp, $string_contents);
fclose($fp);
}
?>
↑に関してfsockopenを使えばhttpのタイムアウトを設定できるだろ
これをfsockopenで書いてタイムアウト2秒にしたやつを
書いて教えろや