PHP Classes

Increase execution time for query

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Increase execution time for query  >  (Un) Subscribe thread alerts  
Subject:Increase execution time for query
Summary:How can i increase execution time of query from 60 seconds
Messages:2
Author:Ali Baig
Date:2014-08-26 22:12:39
 

  1. Increase execution time for query   Reply   Report abuse  
Picture of Ali Baig Ali Baig - 2014-08-26 22:12:39
I'm facing an issue where my api call takes more than 60 seconds to response, How can i increase execution time of query from 60 seconds to more. It keeps on indicating error on 208th line of http.php. Is it CURL thing or some protocol default value? How can i increase it?

  2. Re: Increase execution time for query   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-08-27 04:25:57 - In reply to message 1 from Ali Baig
That is because your PHP configuration has set the default socket timeout to 60 seconds.

I could add an option to change the default timeout but you change it without depending on the class by calling ini_set("default_socket_timeout", 1000) or add your Apache .htaccess file adding a line like:

php_value default_socket_timeout 1000