U
U
uzi_no_uzi2020-01-16 00:50:38
PHP
uzi_no_uzi, 2020-01-16 00:50:38

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

3 answer(s)
W
Web Dentist, 2020-01-16
@kgb_zor

https://github.com/gabrielrcouto/php-gui

Y
Yuri Paimurzin, 2020-01-16
@rusellsystems

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
5e1fc56c00108969986992.png

X
xmoonlight, 2020-01-16
@xmoonlight

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 question

Ask a Question

731 491 924 answers to any question