Re:RE: [PHP] problem with fsockopen ............

From: Date: Mon, 18 Aug 2003 22:51:38 +0000
Subject: Re:RE: [PHP] problem with fsockopen ............
Groups: php.general 
Request: Send a blank email to php-general+get-159920@lists.php.net to get a copy of this message
No,thanks.....I still got the cookies , and could not block cookies, how comes that ? the following is my scripts: --------------------------------------- $fp = fopen("http://XXX.XXX.XXX","r"); while(!feof($fp)) { echo fgets($fp,128); } fclose($fp); ---------------------------------------- >If you want to block the http headers sent back by >the web server,use >fopen() instead. > -----Original Message----- > From: fongming [mailto:fongming@fonn.fongming.idv.tw] > Sent: Monday, August 18, 2003 11:29 PM > To: php-general@lists.php.net > Subject: [PHP] problem with fsockopen ............ > > > Hi,Sir: > > Can I block cookies when I ftput headers ? > following is my fsockopen() scripts, > but it always send back "cookies"..... > Is there any way to prevent from it ? > thanks > ------------------------------------------------- > > $fp = fsockopen ("XXX.XXX.XXX.XXX", 80, $errno, $errstr, 30); > if (!$fp) { echo "$errstr ($errno)<br>\n";} > else > { > fputs ($fp, "GET /index.php HTTP/1.0\r\"); > fputs($fp,"Host: XXX.XXX.XXX.XXX\r\n"); > fputs($fp,"Pragma: no-cache\r\n"); > fputs($fp,"Connection: close\r\n\r\n"); > } > > fclose ($fp); > > ----------------------------------- > Fongming from Taiwan. > > > ------------------------------------------ > ¡»From: ¦¹«H¬O¥Ñ®ç¤p¹q¤l¶l¥ó1.5ª©©Òµo¥X... > http://fonn.fongming.idv.tw > fongming@fonn.fongming.idv.tw > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ----------------------------------- Fongming from Taiwan. ------------------------------------------ ¡»From: ¦¹«H¬O¥Ñ®ç¤p¹q¤l¶l¥ó1.5ª©©Òµo¥X... http://fonn.fongming.idv.tw fongming@fonn.fongming.idv.tw

« previous php.general (#159920) next »