note 14455 added to function.fopen.php
| From: | marcel_levy at onebox dot com | Date: | Wed, 01 Aug 2001 00:34:24 +0000 |
| Subject: | note 14455 added to function.fopen.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16144@lists.php.net to get a copy of this message | ||
It appears that fopen() always opens a connection to port 80 when the location string starts with
"http://", so these lines are functionally identical:
$fd = fopen('http://www.foo.com:8080/');
$fd = fopen('http://www.foo.com:80/');
$fd = fopen('http://www.foo.com/');
http://www.php.net/manual/en/function.fopen.php