![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Industry Role:
Join Date: Oct 2010
Location: Barcelona, Spain
Posts: 4
|
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
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....
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
at the top of your script set_time_limit(600);
http://php.net/manual/en/function.set-time-limit.php
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,507
|
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |