exec() and phantomjs issue with absolute paths
问题 I'm using phantomJS for the purposes of programmatically taking screenshots of a webpage. My webserver runs on Linux 64 bit. The Scenario My test.php file exec('./phantomjs --version', $o, $e); print_r($o); echo $e; I open test.php in a browser. The out put I get is: 1.9.1 // version number 0 // exit code This proves that I can run commands through exec() and phantomJS is working perfectly. The Issue Now when I replace the above code with: exec('./phantomjs http://mywebsite.com/test.js', $o,