GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help - PHP driving me nuts !!!!!!!!!! (https://gfy.com/showthread.php?t=1041494)

Antonio 10-12-2011 01:22 AM

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

IronXavi 10-12-2011 01:43 AM

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.

Antonio 10-12-2011 01:59 AM

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....

grumpy 10-12-2011 02:00 AM

at the top of your script set_time_limit(600);
http://php.net/manual/en/function.set-time-limit.php

CurrentlySober 10-12-2011 02:01 AM

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...

Antonio 10-12-2011 02:07 AM

Quote:

Originally Posted by grumpy (Post 18485514)
at the top of your script set_time_limit(600);
http://php.net/manual/en/function.set-time-limit.php


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