Hi!
I’ve got a little problem that I can’t figure out, maybe someone can help?
I am using an fopen() routine to access a remote url for instance http://www.someserver.com/guide.html?getpage=testpage
The resulting page contains images and text.
On Windows98 with PWS and php4.06 installed it works fine, I get the page without the images (only the clear boxes which imply that there should be an image there).
On Windows98 with Apache1.3 and php4.06 installed it works fine, but the images don’t show up. When I check the error.log I get:
File does not exist: c:/phpdev/www/images/backbar.gif
On Linux with Apache1.3.12 and php4.06 installed, the request for the page basically times out with no resulting page shown, when I check the logs I don’t find any errors.
However, if the resulting page does not contain images and is text only, it works fine with whatever setup I have.
Oh, and I am getting the same problems with fsockopen() also.
Anyone offer any help?
Here is the code:
<?php
$page = "http://www.someserver.com/guide.html?getpage=testpage";
$fp = fopen($page, "r");
while(!feof($fp)) {
$templine = fgets($fp,4096);
$display .= $templine;
}
echo $display;
fclose($fp);
?>
Regards,
Colin