is there way to load a URL without the output being dumped on the page?
curl_setopt($ch, CURLOPT_URL, $TRACK_LOAD_URL);
is there way to load a URL without the output being dumped on the page?
curl_setopt($ch, CURLOPT_URL, $TRACK_LOAD_URL);
Yeah.
There’s an option, CURLOPT_RETURNTRANSFER, that if you set to true, the curl_exec() function will return the contents of the request (e.g. the HTML) rather than spitting that out to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
Awesome thanks Jake, that’s what I was looking for.
I couldn’t figure this out googling and reading the curl manual @_@