Answer the question
In order to leave comments, you need to log in
Why doesn't casperjs run from php code?
Hello! I had a working script, but after a system crash and a factory reset, casper stopped running from the php code.
<?php
function parser($myurli, $file_path) {
try {
echo(shell_exec('casperjs auth.js '.$myurli.' '.$file_path.''));
flush();
} catch (Exception $exc) {
echo('Ошибка!');
echo $exc->getTraceAsString();
}
}
putenv("PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs");
putenv("DYLD_LIBRARY_PATH");
?>
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