PusherException:缺少依赖扩展 - 请确保安装了cURL和JSON模块

时间:2014-10-13 02:51:28

标签: javascript php pusher

我是推手的新手。我只是将pusher集成到代码点火器中,我得到了推动器异常。

 PusherException: There is missing dependant extensions - please ensure both cURL and JSON modules are installed 

我该如何解决这个问题。我无从得到任何想法。谢谢。

1 个答案:

答案 0 :(得分:1)

该例外提供了您需要知道的一切:

  

请确保已安装cURL和JSON模块

cURL和JSON是需要在PHP环境中安装的PHP模块,因为Pusher PHP库依赖于它们来运行。

如果您可以提供有关PHP运行时(PHP版本和操作系统)的更多信息,可以帮助您安装这些信息。

如何在Windows上安装cURL,请访问:How do I install cURL on Windows?

有关安装cURL的官方文档可在此处找到: http://php.net/manual/en/curl.installation.php

安装PHP5的JSON模块: http://slaptijack.com/system-administration/lets-install-json-for-php-5/

官方文件: http://php.net/manual/en/json.installation.php

有关在Windows上安装PHP的一般信息,请访问: http://php.net/manual/en/install.pecl.windows.php