Answer the question
In order to leave comments, you need to log in
How to display the log of the php script from the ubuntu console to the site?
Good afternoon. The problem is this:
I connect to the server via php via ssh2 and execute a command, for example:
The response is issued only when the script has completely completed, but I need to receive information while the script is running in order to know what exactly it is doing at a given time. Is it possible? $info = $ssh->exec('php -f test.php');
Answer the question
In order to leave comments, you need to log in
php.net/manual/ru/function.system.php
php.net/manual/ru/function.passthru.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question