I used casperJS to write a piece of code for simulating logon to a web page in a browser. This file can be executed separately on the console. The execution of this js file needs to be called in another PHP file. How can I encapsulate this js file into a service interface for PHP to call? I used casperJS to write a piece of code for simulating logon to a web page in a browser. This file can be executed separately on the console. The execution of this js file needs to be called in another PHP file. How can I encapsulate this js file into a service interface for PHP to call?
Reply content:
I used casperJS to write a piece of code for simulating logon to a web page in a browser. This file can be executed separately on the console. The execution of this js file needs to be called in another PHP file. How can I encapsulate this js file into a service interface for PHP to call?
System ('casperjs login. js ');//