Answer the question
In order to leave comments, you need to log in
How to run console command in php?
The project on yii 2. The point is to pair the data that is loaded dynamically when the button is clicked.
Task: emulate a click. For this I am going to use phantomjs and I need to call the console command from php and get the result of the execution (for example, the entire page, or a separate html block). An example of a line that I write in the terminal: phantomjs myscript.js example.com
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question