Php grab url script

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Php grab url script

Postby Repute » 07. February 2004 13:51

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
"Keep your face in the sunshine so the shadows fall behind you!"

Repute | http://www.repute.nl
User avatar
Repute
 
Posts: 52
Joined: 12. January 2003 14:33

Postby MAGnUm » 05. May 2004 00:06

~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 20 guests