By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

Questions over questions

P: n/a
Hello people,

I have a problem with my ISP! He kills my php script, if they were executed
over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script
longer!?

Greeting!
Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Sven Dzepina wrote:
Hello people,

I have a problem with my ISP! He kills my php script, if they were executed
over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script
longer!?

Greeting!

If your ISP doesn't run your script in safe mode, which it most likely
does, then you can set_time_limit(0); for unlimited execution time.
Otherwise there is probably no way to let it run longer.

Jul 17 '05 #2

P: n/a

"John Downey" <bl**@doesntexist.com> wrote in message
news:8p***********************@twister.neo.rr.com. ..
Sven Dzepina wrote:
Hello people,

I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script
longer!?

Greeting!

If your ISP doesn't run your script in safe mode, which it most likely
does, then you can set_time_limit(0); for unlimited execution time.
Otherwise there is probably no way to let it run longer.

I heard a rumour that the sleep() function resets the script execution time
each time it's called. So if you use it in conjunction with a loop you can
reset the script execution time after each cycle.

Not tested tho!
Jul 17 '05 #3

P: n/a
Thanks!
My ISP has no safe_mode! =)
"John Downey" <bl**@doesntexist.com> schrieb im Newsbeitrag
news:8p***********************@twister.neo.rr.com. ..
Sven Dzepina wrote:
Hello people,

I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script
longer!?

Greeting!

If your ISP doesn't run your script in safe mode, which it most likely
does, then you can set_time_limit(0); for unlimited execution time.
Otherwise there is probably no way to let it run longer.

Jul 17 '05 #4

P: n/a
"Sven Dzepina" <ma**@styleswitch.de> wrote in message
news:3f***********************@newsread2.arcor-online.net...
Thanks!
My ISP has no safe_mode! =)
"John Downey" <bl**@doesntexist.com> schrieb im Newsbeitrag
news:8p***********************@twister.neo.rr.com. ..
Sven Dzepina wrote:
Hello people,

I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds.
Can I use some trick to fake a little bit? That I can execute the script longer!?

Greeting!

If your ISP doesn't run your script in safe mode, which it most likely
does, then you can set_time_limit(0); for unlimited execution time.
Otherwise there is probably no way to let it run longer.


If you were hosting your account on one of my servers and I found you
defeating the 30 second limit I'd be terminating your account as I'd deem
that you'd broken the Acceptable User Policy. The 30 second time limit is to
stop errant scripts running indefinitely and consuming resources needlessly
for the disbenefit of other users. If you get into the habit of turning this
time limit off you'll eventually create one of these scripts. I don't think
it's good programming practice to leave a user with a script running with no
indication that it's working. This is why we normally segment long processes
into smaller chunks and why things like progress bars were invented.

Paulus
Jul 17 '05 #5

P: n/a
> If you were hosting your account on one of my servers and I found you
defeating the 30 second limit I'd be terminating your account as I'd deem
that you'd broken the Acceptable User Policy. The 30 second time limit is to
stop errant scripts running indefinitely and consuming resources needlessly
for the disbenefit of other users. If you get into the habit of turning this
time limit off you'll eventually create one of these scripts. I don't think
it's good programming practice to leave a user with a script running with no
indication that it's working. This is why we normally segment long processes
into smaller chunks and why things like progress bars were invented.


This begs the question.....

How do you run a php process off-line?

I've built a small perl daemon (php too old) which runs php jobs
off-line. Communication is all via a mySQL table and I have a 'job
queue' webpage to keep an eye on how things are going.

I would really like to be able to spawn offline jobs from a web page
though. Something like....
click the link to get your report...
up pops a small browser window with a progress bar
when the progress bar completes the window reloads
with the report
.... but short of being able to fragment the report build process I can't
think how to do it.

Jul 17 '05 #6

P: n/a
Kevin Thorpe wrote:
If you were hosting your account on one of my servers and I found you
defeating the 30 second limit I'd be terminating your account as I'd deem
that you'd broken the Acceptable User Policy. The 30 second time limit
is to
stop errant scripts running indefinitely and consuming resources
needlessly
for the disbenefit of other users. If you get into the habit of
turning this
time limit off you'll eventually create one of these scripts. I don't
think
it's good programming practice to leave a user with a script running
with no
indication that it's working. This is why we normally segment long
processes
into smaller chunks and why things like progress bars were invented.

This begs the question.....

How do you run a php process off-line?

I've built a small perl daemon (php too old) which runs php jobs
off-line. Communication is all via a mySQL table and I have a 'job
queue' webpage to keep an eye on how things are going.

I would really like to be able to spawn offline jobs from a web page
though. Something like....
click the link to get your report...
up pops a small browser window with a progress bar
when the progress bar completes the window reloads
with the report
... but short of being able to fragment the report build process I can't
think how to do it.

Perhaps some nice javascript and flush() if used right.

Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.