Danny620 Posted May 8, 2012 Share Posted May 8, 2012 I have a url like http://www.northplanet.co.uk/blog.php?empty_cache= and i want to use curl to run the url, when the url is accessed in the browser it clears the cache how can i make php access and run the url in the background? Link to comment https://forums.phpfreaks.com/topic/262245-curl-open-url/ Share on other sites More sharing options...
Marooon Posted May 8, 2012 Share Posted May 8, 2012 if i got you right you can use this $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, "$URL"); $ANSWER=curl_exec ($curl); curl_close ($curl); where $url is the link you want . please notice the curl is an extension you have to add . It has many available options to use . Link to comment https://forums.phpfreaks.com/topic/262245-curl-open-url/#findComment-1343920 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.