Here is an example with naughty pics as a folder for some lame spam, hack, malware site, but the images are almost all illustrations and 3d. NSFW.
test.php on a server with CURL enabled, even your home server (it runs very slowly)
Code: Select all
<html>
<body>
<?php
$root="http://223.cdn.beyondhosting.net/All/";
$len=200;
//
for($t=0;$t<$len;$t++)
{
$n=$t;
//
if($t<10)
{
$n="0".$n;
}
$url=$root."$n.jpg";
//echo "$url<br />";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
// don't download content
curl_setopt($ch, CURLOPT_NOBODY, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if(curl_exec($ch)!==FALSE)
{
echo "
<img src='$url' width='200px' />";
}
curl_close($ch);
}
?>
</body>
</html>