简体   繁体   English

PHP +城市飞艇+ Amazon EC2服务器

[英]Php + Urban Airship + Amazon EC2 Server

I'm trying to implemnet a push notification server. 我正在尝试隐含推送通知服务器。

I'm using: php + Urban Airship + Amazon EC2 Server. 我正在使用:php + Urban Airship + Amazon EC2 Server。

When I try to run the php libary of urban airship I get an error (500). 当我尝试运行城市飞艇的PHP库时,出现错误(500)。

I think I need to install the HTTP_Request package on my server. 我想我需要在服务器上安装HTTP_Request包。

Can anyone explain me how to do it? 谁能解释我该怎么做?

Had the same issue a while back. 前一段时间有同样的问题。 Urban airship is using HTTP_Request. 城市飞艇正在使用HTTP_Request。 You can install it either via Pear: 您可以通过Pear安装它:

pear install HTTP_Request

or your package manager: 或您的包裹经理:

yum install php-pear-HTTP-Request

on Debian, Ubuntu and Centos: 在Debian,Ubuntu和Centos上:

apt-get install php-http-request

Also it seems that the library generates some notices so you might also want to set error_reporting to E_ERROR or E_WARNING 同样,该库似乎会生成一些通知,因此您可能还需要将error_reporting设置为E_ERROR或E_WARNING

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM