问题标签 [php-phantomjs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
15 浏览

php - PhantomJS 无法渲染页面,但其他人工作

我正在尝试呈现此页面(https://www.olx.co.id/item/kost-murah-di-jatipadang-poncol-tb-simatupang-jaksel-iid-523802059)。但是它不起作用。

仅供参考,我可以完美地渲染其他网站。这是我的代码。

我的代码有问题吗?谢谢你。

0 投票
0 回答
39 浏览

php - PhantomJS: 'file:' 不是内部或外部命令、可运行程序或批处理文件

我正在尝试在我的 Windows 10 机器上用 PHP 执行 phantomjs。奇怪的是,如果我在命令行中输入“phantomjs --version”,它就会成功执行。但是如果我把它放到代码中。

给出以下输出:

可运行程序或批处理文件。'phantomjs' 不是内部或外部命令、可运行程序或批处理文件。

我检查了我的 PATH 设置,并且 C:\phantomjs 在那里。

这里可能是什么问题?