Solved

xampp error on php script

Posted on 2013-05-20
2
591 Views
Last Modified: 2013-05-25
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
Comment
Question by:Starquest321
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 39182639
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
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 39182641
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question