note 114497 added to function.curl-setopt

From: Date: Thu, 27 Feb 2014 17:31:27 +0000
Subject: note 114497 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-198741@lists.php.net to get a copy of this message
If you need to read page contents in between file downloads, while still using the same curl handle, you'll probably need this code: <?php curl_setopt($handle, CURLOPT_FILE, fopen('php://stdout','w')); // 'php://output' didn't work for me curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); // using CURLOPT_FILE sets this to false automatically ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/114497 Del: integrated -- https://master.php.net/note/delete/114497/integrated Del: useless -- https://master.php.net/note/delete/114497/useless Del: bad code -- https://master.php.net/note/delete/114497/bad+code Del: spam -- https://master.php.net/note/delete/114497/spam Del: non-english -- https://master.php.net/note/delete/114497/non-english Del: in docs -- https://master.php.net/note/delete/114497/in+docs Del: other reasons-- https://master.php.net/note/delete/114497 Reject -- https://master.php.net/note/reject/114497 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198741) next »