?
Solved

when im runing my php script on wamp

Posted on 2011-05-06
2
Medium Priority
?
322 Views
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.

0
Comment
Question by:Nura111
2 Comments
 
LVL 11

Accepted Solution

by:
brutaldev earned 2000 total points
ID: 35709986
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

0
 

Author Closing Comment

by:Nura111
ID: 35710066
Thank you!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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 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 …
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

862 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