siddscool19 Posted October 22, 2008 Share Posted October 22, 2008 How can we slow down speed of a script..... While sending data using curl its skipping the data due to high server speed. I am not able to get the script to work Here is the function function getquote($postonelink){ $ch2 = curl_init(); curl_setopt($ch2,CURLOPT_URL, $postonelink); curl_setopt($ch2,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch2,CURLOPT_SSL_VERIFYPEER,0); curl_setopt($ch2,CURLOPT_CONNECTTIMEOUT,"120"); curl_setopt($ch2,CURLOPT_COOKIEFILE,"cookie.txt"); $souvik123 = curl_exec($ch2); curl_close($ch2); return $souvik123; } I am not able to get the return code What to do to fix it? There must be a way to control it....... Link to comment https://forums.phpfreaks.com/topic/129621-need-help/ Share on other sites More sharing options...
n3ightjay Posted October 23, 2008 Share Posted October 23, 2008 I don't know curl ... but to "slow down" a script sleep(seconds) http://ca3.php.net/manual/en/function.sleep.php Link to comment https://forums.phpfreaks.com/topic/129621-need-help/#findComment-672489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.