Answer the question
In order to leave comments, you need to log in
How to fix error when starting casperjs?
Welcome all!
Trying to run casperjs from php code:
function parser() {
try {
echo shell_exec('C:/casperjs/bin/casperjs --version 2>&1');
flush();
} catch (Exception $exc) {
echo('error!');
echo $exc->getTraceAsString();
}
}
putenv("PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs");
putenv("DYLD_LIBRARY_PATH");
parser();
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