Im trying to access a website, in which a picture and some text can be extracted. I have coded it all, and seems to work fine, but the speed in which the function responds takes forever!
I dont know whether its because im going through a router or because php is a server script.
My script to open a webpage is:
$homepage = 'http://www.boystoys.co.uk/advanced_search_result.php?keywords=beer';
$fp = fopen($homepage, 'r');
if(!$fp) {
echo "Unable to open\n";
} else {
while(!feof($fp)) {
$body = $body . fread($fp, 1024);
}
}
Ive tried using fsockopen () simiilarly, but that doesnt seem to respond at all......any clues?!