when im runing my php script on wamp

Posted on 2011-05-06
Last Modified: 2012-08-14
when im runing my php script on wamp  its say ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\Test_Programs\counting_top_words.php on line 41
this line is just an echo line in a foreach loop.

also i do get the result before this error and I think maybe because of this error it doest display the full result.

Question by:Nura111
    LVL 11

    Accepted Solution

    Just seems your script is taking longer than the default of 30 seconds to execute.
    Add this at the top of you script to increase the allowed execution time:
    ini_set('max_execution_time', 300); // 300 seconds, make this even higher if you need more time

    Open in new window


    Author Closing Comment

    Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    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…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now