note 8086 deleted from function.fopen by sniper

From: Date: Sat, 27 Jul 2002 21:00:01 +0000
Subject: note 8086 deleted from function.fopen by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33716@lists.php.net to get a copy of this message
(Copy from my note on fread()) Indeed, the fopen-wrappers aren't written too well - they might easily force your server its knees if the server you're connecting to is encountering problems. You could try the CURL support that is in the CVS version, or write your own HTTP implementation either within the fopen-wrappers yourself in C, or try using the fsockopen in PHP and do it within PHP with sockets. With fsockopen, you would connect to port 80 (or whichever is running the WWW server) in the server you wish to request the page, send a 'GET /URI HTTP/1.[01]' with whatever headers you need, and then parse the headers and the content.

« previous php.notes (#33716) next »