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:
... do some authentication stuff
include("auth_user.php"); // takes user to authenticated area
"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
> ... do some authentication stuff
> process_function(); // makes user wait too long to get to the
> include("auth_user.php"); // takes user to authenticated area
> If I try to run the process_function() from the login.php script, the
> 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
> 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
> 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
> message and then please delete this message and any attachment(s). Any
> dissemination, distribution, or reproduction by unintended recipients is
> Thank you.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php