PHP的HTTP类是否支持javascript? [英] Does PHP's HTTP class support javascript?

查看:106
本文介绍了PHP的HTTP类是否支持javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于 PHP代理可以调用​​Javascript像点击一样的功能我正在调查一个涉及使用PHP的HTTP类来模拟客户端浏览器的解决方案。

In regards to Can a PHP Proxy call Javascript functions like a click I'm investigating a solution that involves using PHP's HTTP class to simulate a client's browser.

有人知道 PHP HTTP 类支持javascript函数吗?你能推荐其他人吗?

Does anyone know if the PHP HTTP class supports javascript functions? Can you recommend any others that do?

谢谢!

推荐答案

,但事实并非如此。你必须自己实现这一点。如果你想拥有全部服务器端,请查看phpjs,j4p5或更好的spidermonkey pecl扩展。 http://pecl.php.net/package/spidermonkey

No, it does not. You have to implement this yourself. If you want to have it all-serverside, look into phpjs, j4p5 or better yet the spidermonkey pecl extension. http://pecl.php.net/package/spidermonkey

更好的选择可能是通过XPI插件/ XPCOM桥自己编写真实浏览器脚本。曾经有一个名为JSSh的扩展名和另一个SD连接器, http://www.activestate.com/blog/2008/05/jssh-replacement-sd-connector

A better alternative might be to script a real browser yourself via an XPI plugin / XPCOM bridge. There once was an extension called "JSSh", and another "SD connector", http://www.activestate.com/blog/2008/05/jssh-replacement-sd-connector

这两个选项都不是简单。这就是为什么没有人这样做的原因,以及为什么这些奢侈的功能特别不在HTTP类中。

Neither of these options is simple. That's why nobody has done it, and why such extravagant features are specifically not in the HTTP class.

这篇关于PHP的HTTP类是否支持javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆