"Znalazlem cos takiego i dziala. Jeszcze tylko jedna sprawa - jak wyciagnac date takiego sprawdzanego pliku"
<?php <tr><td><br><b>http://10.<font style=\"color: red\">\"; </table>\"; function remote_file_exists($url) { $head = ''; { $host = $url_p['host']; } else { return '1 Invalid URL host'; } { $path = $url_p['path']; } else { $path = ''; } if (!$fp) { return '2 Unable to connect to remote host'; } else { $host = $parse['host']; $headers = ''; } // for debug //echo nl2br($headers); { return true; } { return false; } { return false; $nextloc = $matches[1]; return remote_file_exists($nextloc); } } return '3 Status Code not supported'. } // sample code $urls[] = \"http://10.1.0.25/dbindex.cpt\"; $urls[] = \"http://10.2.0.25/dbindex.cpt\"; foreach($urls as $url) { echo \"<table width=\"100%\\" border=1 style=\"font-size:11px; font-family: verdana; border-collapse: collapse;border: 0px solid red;\"><tr><td width=\"250\"></b><b>$url</b> - </td>\"; $ret = remote_file_exists($url); $filename = '$url'; if ($ret===true) { //$filemod = filemtime($urls); //$filemodtime = date(\"d m y\", $filemod); //$tTime=$urls[0]; //$tTime=date(\"d m y\", $tTime); // echo \" $tTime<BR>\"; //echo \"<td>\". $filemodtime.\"</td>\"; //echo $filename . ': ' . filesize($filename) . ' bytes'; elseif ($ret===false) else { } } ?>
Please helpnijcie cosik!!!