![]() |
Help - PHP driving me nuts !!!!!!!!!!
Here is the setup:
Running windows 7 Running Zend server Running a php script The script runs fine for two minutes exactly, after that a message pops up saying: "Do you want to save or open this file" and the script stops, the file is the php file in question. I did a lot of reading and this happens when apache does not recognize the php extension, however, the script runs fine for exactly two minutes and then the message pops up and the script stops. This is not the max time variable (or whatever it was called) in php.ini since I changed that to 15 minutes. Any ideas??? Help is greatly appreciated |
What kind of output does it generate? Which headers does it send to the browser?
BTW, PHP scripts usually run in less than a second. How can yours run for 2 minutes? If it's some kind of large data processing, it will always be better to run it in CLI PHP under a SSH session. |
OK, fixed it - there was another ini file for Zend, where the timeout was set to 120 seconds. I just increased the timeout and it is working smoothly now. Damn, it took me hours to come up with the brilliant idea to run a search on all files for "120" lol....
|
at the top of your script set_time_limit(600);
http://php.net/manual/en/function.set-time-limit.php |
My Partially Hard Penis (PHP) drove me nuts as well..
You are not alone... Viagra is your friend - Dont be ashamed - It happens to us all... |
Quote:
That would be the better approach I guess, but the script is enctypted (not mine, I bought it yestreday), can I still add lines to it or would that mess up the code? Thanks |
All times are GMT -7. The time now is 02:23 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc