Hello,
I am trying to write a script that reads a submitted URL and scans thru the URL looking for pop-ups, Iframes, etc. I have written a script that works fine using the file(); PHP command...
However... The problem comes when a "Free Host" attaches pop-up code to the free host client web page. For some reason the file(); , and fsockopen(); methods totally misses the dynamically attached header and footer code by the free host returning only the users page code. I need to be able to read all the code including the free host attachment.
Has anyone encountered this problem with free hosts? Is there a way to get around it?
Help!?
I am trying to write a script that reads a submitted URL and scans thru the URL looking for pop-ups, Iframes, etc. I have written a script that works fine using the file(); PHP command...
PHP Code:
if(!@file($fullurl)){
array_push($Error,"Unable to contact URL host or bad URL.");
$urlerror = TRUE;
}else{
$data = file($fullurl);
foreach ($data as $i){
$pagestring = $pagestring . $i;
}
Has anyone encountered this problem with free hosts? Is there a way to get around it?
Help!?


Comment