Page 1 of 1

Php grab url script

PostPosted: 07. February 2004 13:51
by Repute
Hi there i have a problem on an other server I can see this script perfectly but with lammp the page stays blank...

Can you see what the problem is?

Code: Select all
<html>
<head>
<base href="http://www.windguru.com/int/">
<title>7DAAGSE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
$GrabURL = "http://www.windguru.com/int/print.php?id_user=0&uid=4a855fdba5e5f2884fd4637f61dc15b9&typ=spot&sn=572&odh=0&doh=24&wj=knots&tj=c&fhours=72";  //-  Complete URL Of The Page Your Grabbing From!
$GrabStart = "www.windguru.cz";  //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = "www.windguru.cz";  //- HTML Code To End Grab. Must Be A Unique Bit Of Code!
$OpenFile = fopen("$GrabURL", "r"); //- DO NOT CHANGE
$RetrieveFile = fread($OpenFile, 200000);  //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
fclose($OpenFile);
echo "$DataPrint[1]";
echo "";
?>
</body>
</html>


Thnx,

Repute

PostPosted: 05. May 2004 00:06
by MAGnUm