How to create socket connection with php?

Parallel running php scripts on Linux?

  • Hi, so here is the thing. I would like to run/translate the following script in linux: This bat file would execute the main.php in parallel with the given parameters. start /d "E:\xampp\php\" php.exe E:\xampp\htdocs\main.php param1 param2 start /d "E:\xampp\php\" php.exe E:\xampp\htdocs\main.php param1 param2 I would like to create same script for linux. I will be using putty. I should be able to write the script in Notepad and then just copy it. It should be using screen so it executes on background so i can close the connection.. Any ideas?

  • Answer:

    php /path/to/your/main.php param1 param2 & php /path/to/your/main.php param1 param2 & The "&" at the end of the line makes the command run in the background.

GAZ at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.