Solved

xampp error on php script

Posted on 2013-05-20
2
585 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
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 109

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 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