note 75525 added to ref.curl

From: Date: Sun, 03 Jun 2007 23:51:58 +0000
Subject: note 75525 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-127175@lists.php.net to get a copy of this message
In case you wonder how come, that cookies don't work under Windows, I've googled for some answers, and here is the result: Under WIN you need to input absolute path of the cookie file. This piece of code solves it: <?php if ($cookies != '') { if (substr(PHP_OS, 0, 3) == 'WIN') {$cookies = str_replace('\\','/', getcwd().'/'.$cookies);} curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); } ?> ---- Server IP: 147.32.160.17 Probable Submitter: 85.135.10.2 ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- https://master.php.net/note/edit/75525 Del: integrated -- https://master.php.net/note/delete/75525/integrated Del: useless -- https://master.php.net/note/delete/75525/useless Del: bad code -- https://master.php.net/note/delete/75525/bad+code Del: spam -- https://master.php.net/note/delete/75525/spam Del: non-english -- https://master.php.net/note/delete/75525/non-english Del: in docs -- https://master.php.net/note/delete/75525/in+docs Del: other reasons-- https://master.php.net/note/delete/75525 Reject -- https://master.php.net/note/reject/75525 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127175) next »