Jump to content

Recommended Posts

Posted

Hello...

 

I'm very happy with your cpanel and webspace, speed of servers,...

 

But I have one question. Problem is when running some scripts that generate files and the script works long time.

Default settings for setTimeout are 30 seconds. I was wondering if it would be possible to set this limit a bit higher (60 secs)?

 

Than you...

Posted
If you have the possibility to modify the php.ini -file. Do that and somewhere in there you can change the time-out-'length'

 

Individual users cannot modify the php.ini file on shared servers.

Posted

Just a word of warning. The server settings are designed to prevent problems. If you set a longer timeout on the script and for some reason it goes into a loop and runs the whole time it could well cause server loads to climb and result in suspension of your site. Scripts go beserk sometimes.

Posted

I guess I should have added that if one modifies the defaults set by TCH and it causes bad things then it will have adverse effects on your account. We have set those defaults to protect against overloading the servers. With the script above if you "have" to use it then set it to the longest you need it for and if it is a one time thing then remove it after you are finished.

  • 2 months later...
Posted

Okay, I'm trying to do this, and it's not working. Whenver I put that line in my .htaccess file, the whole file won't work. I'm assuming I just missed something and I'm doing it wrong. What am I possibly missing?

 

Here's the content of my .htaccess file:

 

ErrorDocument 404 /404.html

php_value max_execution_time 300

 

-Ryan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...