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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-12-2011, 01:22 AM   #1
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
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
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2011, 01:43 AM   #2
IronXavi
Registered User
 
IronXavi's Avatar
 
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.
__________________

Monetize your traffic: $5.00 per 1K clicks
(sign up via link above - regular rate is $4.20/1K)
IronXavi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2011, 01:59 AM   #3
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
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....
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2011, 02:00 AM   #4
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
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
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2011, 02:01 AM   #5
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
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...
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-12-2011, 02:07 AM   #6
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
Quote:
Originally Posted by grumpy View Post
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
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.