How to hide output from curl in PHP?
My code in its current form is as follows:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_USERPWD, PSSWDINFO); $result= curl_exec ($ch); curl_close ($ch);
The problem is that it displays the whole page, how can I just show a message about success or failure?
php curl
mrpatg Aug 05 '09 at 17:08 2009-08-05 17:08
source share