When i use this code,
$ch = curl_init($url);
$statuses = curl_exec($ch);
curl_close($ch);
I am returned what i want, but if i just use that - $statuses
is echoed out onto the page, how can i stop this?
When i use this code,
$ch = curl_init($url);
$statuses = curl_exec($ch);
curl_close($ch);
I am returned what i want, but if i just use that - $statuses
is echoed out onto the page, how can i stop this?
Put this on line 2:
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
Include this option before curl_exec()
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);