0

I am writing a web-service. The PHP processor should handover the processing to an executable file located on the server.

On arrival of a request , the PHP should run the executable & take the output from the executable back & process it further in PHP , while the executable continues to run in the background. How can this be achieved?

2
  • The background process is a PHP script? Commented Jun 22, 2012 at 13:31
  • 2
    Please give more information or this post will be unsalvagable and be closed due to little reusability... Commented Jun 22, 2012 at 14:12

1 Answer 1

1

I made a webservice, which can run calculations in background and used files to communicate.

  • Request from client
  • create job file
  • start background php cli which runs job file
  • if the job process is done, it writes it's result to a result file
  • when the client requests the result from a job, the server process reads it from the result file
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.