[PHP] fopen() using non-standard port

2002-11-09 Thread Tim Lan
Is there anyway to use fopen() to open a webpage through a non-standard port? For example, the webpage I need must be accessed through port 2734 instead of the standard HTTP port 80, and PHP seems to ignore port information in the URL (e.g. fopen( http://www.domain.com:2734/...; ); ) Thanks in

Re: [PHP] fopen() using non-standard port

2002-11-09 Thread Khalid El-Kary
hi, i suggest that you use CURL, check the PHP manual if CURL did't help you can use the lower-level PHP sockets extension also check the PHP manual khalid _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

Re: [PHP] fopen() using non-standard port

2002-11-09 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You can't use fopen, but you can use fsockopen ( php.net/fsockopen ). $fp = fsockopen ( www.domain.com, 2734); fputs($fp, GET / HTTP/1.0\r\n\r\n); while ( !feof($fp) ) echo fgets($fp, 256); CURL is kinda overkill, sockets are overkill and