note 108390 added to function.curl-setopt

From: Date: Sun, 22 Apr 2012 15:43:16 +0000
Subject: note 108390 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-187283@lists.php.net to get a copy of this message
Hi I using this code: <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, false); // grab URL and pass it to the browser $result = curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); echo $result; ?> And it works but I keep getting the resource number (1) at the end of my result. Does anyone know how to stop that from happening? Thanks, Robert ---- Server IP: 72.55.140.6 Probable Submitter: 80.90.168.233 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/108390 Del: integrated -- https://master.php.net/note/delete/108390/integrated Del: useless -- https://master.php.net/note/delete/108390/useless Del: bad code -- https://master.php.net/note/delete/108390/bad+code Del: spam -- https://master.php.net/note/delete/108390/spam Del: non-english -- https://master.php.net/note/delete/108390/non-english Del: in docs -- https://master.php.net/note/delete/108390/in+docs Del: other reasons-- https://master.php.net/note/delete/108390 Reject -- https://master.php.net/note/reject/108390 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187283) next »