Solved

xampp error on php script

Posted on 2013-05-20
2
579 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 82

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 108

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now