PHP Apache XAMPP Run Multiple Scripts from CLI in Background

Posted by Pamela on Server Fault See other posts from Server Fault or by Pamela
Published on 2012-08-30T14:45:38Z Indexed on 2012/08/30 15:40 UTC
Read the original article Hit count: 275

Filed under:
|
|
|
|

How can I simultaneously run dozens of PHP scripts in the background from XAMPP's command line interface?

Someone suggested a batch file, but when I tried executing this:

start php 1.php
start php 2.php
start php 3.php

It only opened a command prompt window; I closed that window, then two more command prompt windows opened up executing 2.php and 3.php.

I want to run as many scripts as I want all simultaneously and all in the background. What is the best way to accomplish this, and how can it be done?

© Server Fault or respective owner

Related posts about apache2

Related posts about php