I would like to ask you if i call any application with system(); in PHP5 is it possible to get result of that application directly to php? (instead of doing SomeApp >> file.txt – and reading file in PHP).
For example: system(‘lynx page.html’);
and i’d like to put result of ‘lynx page.html’ into variable.
Thank you.
The easiest way would be to use the backtick operator:
You can also use
shell_exec("command"), which is equivalent.