I have 2 scripts
The first one works fine with google.com (gets the text anyway) but does not grab anything from switchboard.com.
$GrabURL = "http://www.DOMAIN.com"; //- Complete URL Of The Page You're Grabbing From!
$GrabStart = "<html>"; //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = "</html>"; //- 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); //- DO NOT CHANGE
echo $DataPrint[1]; //- DO NOT CHANGE
This script works just fine:
include("http://www.switchboard.com");
Is it possible that fopen or fread is blocked by switchboard.com? If so, is there any workaround?
Thanks, Mike