note 100716 added to function.curl-setopt

From: Date: Tue, 02 Nov 2010 09:30:18 +0000
Subject: note 100716 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-173680@lists.php.net to get a copy of this message
This function helps to parse netscape cookie file, generated by cURL into cookie array: function _curl_parse_cookiefile($file) { $aCookies = array(); $aLines = file($file); foreach($aLines as $line){ if('#'==$line{0}) continue; $arr = explode("\t", $line); if(isset($arr[5]) && isset($arr[6])) $aCookies[$arr[5]] = $arr[6]; } return $aCookies; } ---- Server IP: 69.147.83.197 Probable Submitter: 109.122.0.23 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/100716 Del: integrated -- https://master.php.net/note/delete/100716/integrated Del: useless -- https://master.php.net/note/delete/100716/useless Del: bad code -- https://master.php.net/note/delete/100716/bad+code Del: spam -- https://master.php.net/note/delete/100716/spam Del: non-english -- https://master.php.net/note/delete/100716/non-english Del: in docs -- https://master.php.net/note/delete/100716/in+docs Del: other reasons-- https://master.php.net/note/delete/100716 Reject -- https://master.php.net/note/reject/100716 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173680) next »