INPUT " . $URL . ""; if ($URL) { $PARSED_URL = (parse_url($URL)); // print_r($PARSED_URL); $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $URL); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); if ($PARSED_URL['user'] && $PARSED_URL['pass']) { $CURLOPT_USERPWD = "{$PARSED_URL['user']}:{$PARSED_URL['pass']}"; curl_setopt ($ch, CURLOPT_USERPWD, $CURLOPT_USERPWD); } $file_contents = curl_exec($ch); curl_close($ch); if ($file_contents && (!$NOSAVE)) { $tmpfname = tempnam("/home/hendry/ii.dabase.com/tmp", "pr0n"); $handle = fopen($tmpfname, "w"); fwrite($handle, $file_contents); fclose($handle); // echo "

Wrote: $tmpfname

"; } } // do here something // unlink($tmpfname); ?>