I am using the following code on linux web server
$error = exec('phantomjs table1.js', $op, $code); echo $code; // prints 11 on screen
table1.js
var page = require('webpage').create(); var url = 'table1.php'; page.open(url, function (status) { page.render('ss/table1.png'); phantom.exit(); });
table1.php
echo '<h1>This should be converted to an image</h1>';
I went through this , but this code is not listed there. Any idea what this exit code means?
linux php exec exit-code
asprin
source share