A
A
Alexander Gruzdev2012-11-05 00:31:03
PHP
Alexander Gruzdev, 2012-11-05 00:31:03

Parallel execution of scripts?

On the server:
There is a whole site parser script using curl. Execution time > 15s.
At runtime, it writes its status to a temporary status.txt file.
On the client: An
Ajax request starts the parser, and until it completes, parallel requests are sent to get its status from the status.txt file.
Everything works, and the user sees what is being scanned at the moment. but, if I try to request the status.php script instead of status.txt in parallel, even just displaying the value of the session variable, it queues up and waits until the parser script finishes executing.
actually the question is why? or how to make the status.php script not wait for the parser to execute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vsespb, 2012-11-05
@vsespb

Maybe your server is configured so that a maximum of 1 PHP process is started?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question