PHP CLI Timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply

What's your favorite?

Poll ended at Fri Nov 05, 2004 3:05 am

WIMP
1
20%
LAMP
4
80%
 
Total votes: 5

terji
Forum Commoner
Posts: 37
Joined: Tue May 14, 2002 5:27 pm
Location: Denmark

PHP CLI Timeout

Post by terji »

I'm running a rather large script directly on php.exe and I get a timeout after a couple of minutes.

Code: Select all

Maximum execution time of 2500 seconds exceeded in ...
As you can see I've set the max execution time to a ridiculus high value but still after 2 minutes I get the error message...

The scripts execute from a scheduled task on a Windows 2000 server.

I stuck :!: :evil:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

You get that after 2 minutes? 2,500 seconds is around 42 minutes...

Does the script being run have [php_man]set_time_limit()[/php_man] or a similar function on it?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

regarding the poll: BAMP :)
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

XAMPP :P
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

vigge89 wrote:XAMPP :P
Last P stands for Python, Perl_ or something P . . .? ;)
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

terji
Forum Commoner
Posts: 37
Joined: Tue May 14, 2002 5:27 pm
Location: Denmark

Post by terji »

Sami wrote:You get that after 2 minutes? 2,500 seconds is around 42 minutes...

Does the script being run have [php_man]set_time_limit()[/php_man] or a similar function on it?
No it doesn't... It's a simple "go-through-all-files-in-this-folder-and-modify-them" script :?
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

xampp
Apache HTTPD 2.0.52, MySQL 4.0.21, PHP 5.0.2 + 4.3.9 + PEAR + Switch, MiniPerl 5.8.3, mod_ssl 2.0.51, Openssl 0.9.7d, PHPMyAdmin 2.6.0 pl1, Webalizer 2.01-10, Mercury Mail Transport System für Win32 und NetWare Systems v4.01a, FileZilla FTP Server 0.9.3, SQLite 2.8.15, ADODB 4.52, Zend Optimizer 2.5.3. For Windows 98, 2000, XP.
for those who really want to know
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

phpScott wrote: for those who really want to know
I hope most of us do not need that link in my signature. :evil:
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Weirdan wrote:
phpScott wrote: for those who really want to know
I hope most of us do not need that link in my signature. :evil:
huh? :?
terji
Forum Commoner
Posts: 37
Joined: Tue May 14, 2002 5:27 pm
Location: Denmark

Post by terji »

vigge89 wrote:
Weirdan wrote:
phpScott wrote: for those who really want to know
I hope most of us do not need that link in my signature. :evil:
huh? :?
My thoughts exactly :)
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

lol
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

vigge89 wrote: huh? :?
That sounded like an implication that I was too lazy to use Google.

Whatever it was, I'm not going to start any flamewar here; enough of that.
Post Reply