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 Link to comment https://forums.phpfreaks.com/topic/105784-using-php-to-start-a-very-long-process/ 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 &'); ?> Link to comment https://forums.phpfreaks.com/topic/105784-using-php-to-start-a-very-long-process/#findComment-542089 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 Link to comment https://forums.phpfreaks.com/topic/105784-using-php-to-start-a-very-long-process/#findComment-542184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.