stealthmode666 Posted January 17, 2009 Share Posted January 17, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 17, 2009 Share Posted January 17, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/#findComment-738900 Share on other sites More sharing options...
stealthmode666 Posted January 17, 2009 Author Share Posted January 17, 2009 err, if you read my posts you would see i'm new to php, hence the reason why i was using this forum, for help, no books i have on php told me this, but thanks anyway Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/#findComment-739011 Share on other sites More sharing options...
Mchl Posted January 17, 2009 Share Posted January 17, 2009 Dod no one tell you to enable error reporting and display? If no, then indeed we have failed. Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/#findComment-739018 Share on other sites More sharing options...
stealthmode666 Posted January 17, 2009 Author Share Posted January 17, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/#findComment-739036 Share on other sites More sharing options...
Mchl Posted January 17, 2009 Share Posted January 17, 2009 Well then... at least now you've learned two things. One about script execution time limits, and another to always enable error reporting, when something seems to be working wrong. Quote Link to comment https://forums.phpfreaks.com/topic/141170-solved-execution-time-of-php-script/#findComment-739038 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.