I have 2 scripts
The first one works fine with google.com (gets the text anyway) but does not grab anything from switchboard.com.
This script works just fine:
Is it possible that fopen or fread is blocked by switchboard.com? If so, is there any workaround?
Thanks, Mike
The first one works fine with google.com (gets the text anyway) but does not grab anything from switchboard.com.
Code:
$GrabURL = "[URL unfurl="true"]http://www.DOMAIN.com";[/URL] //- 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:
Code:
include("[URL unfurl="true"]http://www.switchboard.com");[/URL]
Is it possible that fopen or fread is blocked by switchboard.com? If so, is there any workaround?
Thanks, Mike