If you want to block the http headers sent back by the web server,use fopen() instead. > -----Original Message----- > From: fongming [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 11:29 PM > To: [EMAIL PROTECTED] > 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: ???パ?????ン1.5?┮??... > http://fonn.fongming.idv.tw > [EMAIL PROTECTED] > > -- > 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