title: Can I change default_socket_timeout from my php code?
body: <p>In my php script I restore db2 database backups. They are getting bigger and bigger. So now I was getting 500 Server Error after +-30min after executing the script. There was this line in <code>(mod_fastcgi.c.3352) response not received, request sent: 634 on socket: tcp:127.0.0.1:9090 for /wrational/restoredb.php?mode=restore&amp;database=RATIONAL, closing connection</code> in php-errors.log file.</p>
  
  <p>I thought that setting `set_time_limit(6000);1 would solve the issue but it hasn't. </p>
  
  <p>Increasing <code>default_socket_timeout</code> in php.ini file did the trick.</p>
  
  <p>Is there any way to change <code>default_socket_timeout</code> from php code?</p>