note 102822 added to function.stream-context-create

From: Date: Tue, 08 Mar 2011 14:42:14 +0000
Subject: note 102822 added to function.stream-context-create
Groups: php.notes 
Request: Send a blank email to php-notes+get-177667@lists.php.net to get a copy of this message
<?php $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); ?> what's this script function? does it actually create a cookie named foo ? thanks ---- Server IP: 69.147.83.197 Probable Submitter: 81.57.74.33 ---- Manual Page -- http://www.php.net/manual/en/function.stream-context-create.php Edit -- https://master.php.net/note/edit/102822 Del: integrated -- https://master.php.net/note/delete/102822/integrated Del: useless -- https://master.php.net/note/delete/102822/useless Del: bad code -- https://master.php.net/note/delete/102822/bad+code Del: spam -- https://master.php.net/note/delete/102822/spam Del: non-english -- https://master.php.net/note/delete/102822/non-english Del: in docs -- https://master.php.net/note/delete/102822/in+docs Del: other reasons-- https://master.php.net/note/delete/102822 Reject -- https://master.php.net/note/reject/102822 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177667) next »