-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
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*
http://join.msn.
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 a
3 matches
Mail list logo