Jump to content

[SOLVED] execution time of PHP script


stealthmode666

Recommended Posts

For a few weeks I have been baffled why my script would send data before it had finished processing the form. I have to say thanks to all who helped me in the weeks of frustration i endured as to why.

 

Nobody ever told me that some servers have a 30 sec limit on execution of scripts!!

 

I have since worked out that I had to add code to allow the execution time to be extended. Why did no-one pick up on this and tell me and the world when I was asking for weeks as to my problem?

Link to comment
https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/
Share on other sites

The execution limit information you are complaining about is in the php manual and if you were developing and debugging your code on a system with error_reporting set to E_ALL and display_errors set to ON (or if you had checked your web server error log), you would have seen the the error messages telling you that the execution limit had been exceeded.

I'm afraid no-one told me this, and as my script was progressing it was always running, I jump in deep with a form of over 200 fields.

I learned how to take it from an array list to a formatted html email with all the form data displayed in a beautiful table in the email in php.  I bought and read a few books and completed the tutorials to the end and I asked loads of times in posts why this was happening.

I only discovered for myself last night by chance why this was happening from speaking to one of my old lecturers.

It's easy for others to presume that every-one knows what they know and does what they do. I am greatful though for the amount of help at times i've received in this forum.

All i have to do now is finish it as I set out in the beginning. :)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.