|
/*
error_reporting(0);
$url = "$basisurl/alleen_menu";
$file = "content2.inc";
$unique_start = "";
$unique_end = "";
ini_set('max_execution_time', '0');
flush ();
$fetch_domain = parse_url($url);
$fetch_domain = $fetch_domain[host];
$socket_handle = fsockopen("$fetch_domain", 80, $error_nr, $error_txt,30);
if(!$socket_handle)
{
print("Cannot make a connection to: $fetch_domain and therefore cannot collect your requested data");
$contents = implode("",@file( $file ) );
echo $contents;
exit;
}
$fd= fread(fopen("$url", "r"), 100000);
if ($fd)
{
$start= strpos($fd, "$unique_start");
$finish= strpos($fd, "$unique_end");
$length= $finish-$start;
$code=Substr($fd, $start, $length);
$code2=Substr($fd, $start, $length);
}
$code = str_replace("#replace_img#",$basisurl,$code); // #replace_img# replace voor basisurl
echo $code;
echo " ";
*/
?>
|
|