Solved

xampp error on php script

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
This article discusses how to implement server side field validation and display customized error messages to the client.
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

739 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