Answer the question
In order to leave comments, you need to log in
How to install phantomjs on Centos 7 and call in php?
Good time of the day!
Tell me what I can’t figure out further for the whole day I didn’t really find anything on Google (
I installed phantomjs as I found in this discussion How to install PhantomJS on CentOS 7? I installed the VPS server through the Centos 7 console. then I
found the folder where it was installed / usr /lib/node_modules/phantomjs
now I call in php
$output = shell_exec('/usr/lib/node_modules/phantomjs -v');
echo "<pre>$output</pre>";
Answer the question
In order to leave comments, you need to log in
And if you execute from the console: /usr/lib/node_modules/phantomjs -v
will anything return?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question