Basically I have a bit of code I want to repeat x number of times .. for example:
Code: Select all
<?php
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com");
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
?>And finally .. can I somehow save the results to my server in a text file or similar and not have the result posted to the browser? Would this make the script run faster if the results were saved somewhere rather than waiting for the browser to load?
Apologies for all the questions on my first post.
Any help is appreciated.
Thanks!