Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 609
  • Last Modified:

xampp error on php script

We are running a php script and getting the following error:


Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\php\pear\HTTP\Request2\Adapter\Curl.php on line 465


What can we do?
0
Starquest321
Asked:
Starquest321
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
You can either write a script that executes quicker or you can change the Maximum Execution Time in 'php.ini'.  http://php.net/manual/en/info.configuration.php
0
 
Ray PaseurCommented:
Couple of things... You can try increasing the execution time with set_time_limit() if you believe that the script is not in a loop and it's normal to expect it to run for a long time.  You can try rewriting the script to set a shorter "fail" time for cURL and handle the error condition programatically.  You can add some debugging code to the script to see if there is an accidental loop.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now