B
B
Bur Ov2018-09-16 13:08:54
PHP
Bur Ov, 2018-09-16 13:08:54

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

1 answer(s)
T
ThunderCat, 2018-09-16
@ThunderCat

php.net/manual/ru/function.system.php
php.net/manual/ru/function.passthru.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question