-----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 hard to use. Of course, then you have to worry about headers, but that's easy enough to overcome... just test each line. The first empty line is the end of the headers. So wait for the first empty line, set a variable to TRUE... On Saturday 09 November 2002 08:36 pm, Khalid El-Kary wrote: > 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.com/?page=features/junkmail - -- I am convinced that the teaching of the church is in theory a crafty and evil lie, and in practice a concoction of gross superstition and witchcraft - -Leo Nikolaevich Tolstoy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ze44/rncFku1MdIRAkBRAJ9C89eQx390eh1khrfq/CdaQjPHgQCfc8sf oic6DqIPISSeqcWPivZcsJs= =0D39 -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php