Go Back   CP Web Hosting - reseller hosting > Server Scripting > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 11:15 AM
Senior Member
 
Join Date: May 2007
Posts: 290
Default script time out error occur?

When we execute a php file under command line, that includes large functionality and it takes 2 or 3 minutes to complete the task, What is my doubt is while running that file under command line,will script time out error occur?
Reply With Quote
  #2 (permalink)  
Old 07-04-2007, 11:16 AM
Senior Member
 
Join Date: May 2007
Posts: 217
Default

Increase the max_execution_time variable in php.ini to the required time and you should be ok.
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 11:18 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Default

use this code

Code:
set_time_limit(0);
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0