note 85580 deleted from function.curl-setopt by danbrown

From: Date: Sun, 17 May 2009 17:18:53 +0000
Subject: note 85580 deleted from function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154966@lists.php.net to get a copy of this message
Note Submitter: AmBAr Amarelo ---- Like eion said before (http://br.php.net/manual/ro/function.curl-setopt.php#71313), the function CURLOPT_FOLLOWLOCATION don't will work when OPEN_BASEDIR is ON (or SAFE_MODE is ON). he created a CURLOPT_FOLLOWLOCATION function alternative named: curl_redir_exec() Well, this function have a little error on line that contains: list($header, $data) = explode("\n\n", $data, 2); do you have replace for: list($header, $data) = explode("\r\n", $data, 2); note the '\n\n' cause this error, so just replace for '\r\n'. Thanks Eion for your curl_redir_exec() Function :)

« previous php.notes (#154966) next »