Hay folks a friend sent this to my its some sort of verifier for tublr
if user name is valid or not.
is there a way to modify so it opens up a txt file and tests many
thanks any help you give
<?php
$username = "hh";
$url="http://"$username".tumblr.com";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt($ch, CURLOPT_NOBODY, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
$header = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if( $header == "404" )
{
echo not found
}else{
echo valid
}