I have setup CasperJS without a problem and have a script correctly configured & working when I execute directly via the command line - I would now like to have my PHP Codeigniter application 'talk-to' this script and be able to execute the same script via my web application. I am running XAMPP - although the final product will be deployed on a LAMP server.
To run the script (successfuly via the cmd I use the following:)
casperjs test.js
I have created a basic controller within Codeigniter with the following line but nothing seems to happen? Can anyone suggest what I am doing wrong?
public function run()
{
shell_exec('casperjs test.js');
}