[PHP] Re: Executing a time intensive script

2002-04-19 Thread Michael Virnstein

you 'd need process forking, which is has to be compiled into php
and which should/could not be used within a webserver environement.

i don't know your scripts will work,
if you call process_function after including auth_user.php.
if it works, i'd do it this way:



Regards Michael

"Zach Curtis" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have three scripts login.php, auth_user.php, and function.php. The
> login.php script does user authentication and routes the user to
> auth_user.php. The function.php script, which contains process_function(),
> does some very intensive data processing and may take from 30 seconds to 3
> minutes to run.
>
> Here's what I have tried to do:
>
> // login.php script
>
> require("function.php");
> ...
> ... do some authentication stuff
> ...
>
> process_function(); // makes user wait too long to get to the
authenticated
> area
>
> include("auth_user.php"); // takes user to authenticated area
>
>
> If I try to run the process_function() from the login.php script, the
script
> takes too long to run. How can I get this function to run so it does not
> interfere with user logging in? Is there a way to get the function to
> execute and let it run on its own within login.php and let the user
continue
> on to the authenticated area without that delay?
>
> Another thought I had was to get the function.php script that contains the
> function to execute on its own based on time (e.g., run every hour on the
> hour). Is there a way to do that?
>
> Thank you.
>
> _
> Zach Curtis
> Programmer Analyst
> POPULUS
> www.populus.com
> _
>
> Confidentiality Statement:
>
> This e-mail message and any attachment(s) are confidential and may contain
> proprietary information that may not be disclosed without express
> permission.  If you have received this message in error or are not the
> intended recipient, please immediately notify the sender by replying to
this
> message and then please delete this message and any attachment(s).  Any
use,
> dissemination, distribution, or reproduction by unintended recipients is
not
> authorized.
> Thank you.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Executing a time intensive script

2002-04-18 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Zach Curtis) wrote:

> Is there a way to get the function to
> execute and let it run on its own within login.php and let the user continue
> on to the authenticated area without that delay?




-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php