[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to control the php stand-alone process



Hello Patrick,

I've used standalone php scripts to fetch data for
from the web.
Isn't using PHP as a scripting language cool ?

I found the script execution setting in the php.ini file
does the trick.

With regards to CPU usage I would try Top again.
When top is running press 'h' to see other commands
available to you.
Select 'shift a' to sort by age or 'u' or sort by user.

Hope this helps
Regards
Rudi.
----- Original Message -----
From: "Patrick Hsieh" <pahud@pahud.net>
To: <debian-isp@lists.debian.org>
Sent: Monday, April 15, 2002 7:54 PM
Subject: How to control the php stand-alone process


> Hello list,
>
> I have some stand-alone php scripts in the cron job. I want to limit the
> max execution time for single php process. In the php document:
>
> http://www.php.net/manual/en/function.set-time-limit.php
>
> Note:  The set_time_limit() function and the configuration directive
> max_execution_time only affect the execution time of the script itself.
> Any time spent on activity that happens outside the execution of the
> script such as system calls using system(), the sleep() function,
> database queries, etc. is not included when determining the maximum
> time that the script has been running.
>
>
>
> Since the set_time_limit() and max_execution_time can't handle system
> call used in the php scripts, how can I get the max time control for
> each php script? If I can't, chances are some php scripts may keep in
> the process for couple days, which is unwise.
>
>
> --
> Patrick Hsieh <pahud@pahud.net>
> GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg
>
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org


-- 
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: