tarsier Posted May 15, 2008 Share Posted May 15, 2008 Hello. I was wondering if anyone has any advice on how to start a 30-40 minute process from a web page using PHP. The process I want to start is actually a PHP program that starts from the command line and does a huge file-to-database transfer. I would love to have users be able to start this process from a web-page. I've looked at starting child processes but it looks like any child I make from the web-process is still bound by the maximum execution time for CGI scrips. Any ideas? Thanks. - Dave Quote Link to comment Share on other sites More sharing options...
trq Posted May 15, 2008 Share Posted May 15, 2008 You need to use the & operator to background the process. eg; <?php ecec('somelongprocess &'); ?> Quote Link to comment Share on other sites More sharing options...
tarsier Posted May 15, 2008 Author Share Posted May 15, 2008 Thanks for the reply. This is all running on a windows server. Will this still work? -Dave Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.