Answer the question
In order to leave comments, you need to log in
Interface for PHP parser?
Is it even possible to have an interface for a PHP parser? Those. here it is parsing, is it possible to display the process somehow in the progress bar on the front-end'e?
Or is there no such possibility? How do they act in such situations?
Answer the question
In order to leave comments, you need to log in
I did it with an ajax poll with output to the front by a timer, I used Java GWT to compile from Java to Javascript, it was 2012
on this video you can see at 6 seconds the interface where logs for selected events from the parser are displayed according to the set timer
Long Polling, Websocket.
On the server, this is the launch of a child php process through the php queue manager on request for parsing with the output of progress to the unix socket when the client connects - another php script that starts on request from the browser and connects to the parser script.
On the client (in the browser, js) - connection control: auto-reconnect when the connection is lost.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question