Re: [PHP] readfile + proxy

2001-06-24 Thread Anon Y Mous
Instead of using readfile(), try using the file() function. // Get php.net and store it in an array. $theFile = file("http://www.php.net";); // Convert the array to one long string. $theFile = implode("",$theFile); // And output the file. echo $theFile; If you're trying to do this with an image,

[PHP] readfile + proxy

2001-06-24 Thread Joris Van Droogenbroeck
How can I read some webpage through a proxy in PHP. I wan't to use the function readfile(http://www.php.net/) but I get an host_connect error. -- A good programmer is someone who looks both ways before crossing a one-way street. - Doug Linder -- PHP General Mailing List (http://www.php.net/