RE: [PHP] fsockopen
| From: | Vail, Warren | Date: | Fri, 26 Apr 2002 17:58:56 +0000 |
| Subject: | RE: [PHP] fsockopen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94769@lists.php.net to get a copy of this message | ||
I haven't tried this, but why don't you just use fopen with a URL,
especially if you don't what to have to deal with the http header.
I would think that if you do the fsockopen to port 80, you will need to use
the handshake protocol required by that server which involves the get/put
http headers. fopen should handle all that for you.
http://www.php.net/manual/en/function.fopen.php
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-----Original Message-----
From: wm [mailto:webmaster@blanktv.com]
Sent: Friday, April 26, 2002 10:50 AM
To: php-general@lists.php.net
Subject: [PHP] fsockopen
this might be a stupid question, but what the hell...
can a web page be called and diplayed using the fsockopen and
fputs/fgets functions?
so instead of just using a normal href call i use a script and fsockopen
(not header(Location: ....) ) etc.?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php