草庐IT

Firebase-cloud-messaging

全部标签

php - Gettext 和 PHP 5.3.5 xampp - 使用未定义常量 LC_MESSAGES - 假设 'LC_MESSAGES' in

我收到以下错误:Notice:UseofundefinedconstantLC_MESSAGES-assumed'LC_MESSAGES'inC:\ProgramFiles\xampp\htdocs\xampp\phptest\resources\testi18n.phponline19Notice:Undefinedindex:languageinC:\ProgramFiles\xampp\htdocs\xampp\phptest\resources\testi18n.phponline19Deprecated:setlocale()[function.setlocale]:Pass

使用 GAE 和 Google Cloud SQL 的 PhP

我正在使用php创建一个在googleappengine上运行的网络应用程序。我想使用googlecloudsql来存储数据。我在开发过程中使用了本地MySQL实例。我已将quercus添加到我的项目中,并编写了简单的php代码以从现有的mysql数据库中检索数据。但是当我运行我的php文件时出现以下错误。D:\workspace\PHPStore\war\info.php:6:Warning:Alinktotheservercouldnotbeestablished.url=jdbc:mysql://localhost:3306/?characterEncoding=ISO8859_

PHP Mailer 错误 : Message could not be sent. Mailer Error: SMTP connect() failed

这是我的代码:require'phpmailertesting/PHPMailerAutoload.php';$mail=newPHPMailer;//$mail->SMTPDebug=3;//Enableverbosedebugoutput$mail->isSMTP();//SetmailertouseSMTP$mail->Host='send.one.com';//SpecifymainandbackupSMTPservers$mail->SMTPAuth=true;//EnableSMTPauthentication$mail->Username='myemailhidden';

php - error.message 和 error.messageKey 之间的 symfony2 区别

我正在实现一个简单的自定义登录表单。我正在关注两个不同的例子,官方的一个http://symfony.com/doc/current/cookbook/security/form_login_setup.html还有这个https://knpuniversity.com/screencast/symfony2-ep2/logout#play这基本上是相同的,但有一些差异。看一下这两个例子的login.html.twig,其中一个不同点在于第一个报告的错误消息报告{{error.message|trans}}而其他报告divclass="error">{{error.messageKey

php - <b> fatal error </b> : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out'

我正在开发一个Codeigniter项目,在该项目中我使用twitterapi库来获取twitter数据。在我更改服务器之前它工作得很好,但是在更改服务器之后它产生了以下错误。我不知道问题所在。Fatalerror:Uncaughtexception'Exception'withmessage'Failedtoconnecttoapi.twitter.comport443:Connectiontimedout'in/my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php:297Stacktrac

php - 上传的图片未在 Google Cloud Storage 上设置为公开 - Google App Engine

我遇到了一个问题。我确实遵循了Googleapp-engine-Uploadedfilesnotpublicongooglecloudstorage的两个答案,但仍然没有运气。图片在上传到存储桶时没有设置为公开这是我的代码://GoogleAPItocreateanabsoluteURLthatcanbeusedbyausertoasynchronouslyuploadalargeblobrequire_once'google/appengine/api/cloud_storage/CloudStorageTools.php';usegoogle\appengine\api\cloud

php - 使用 PHP 执行 cURL 发送推送通知

我正在尝试发送cURL命令来发送推送通知。我是cURL的新手,似乎无法运行命令。这是cURL命令行:curl--header"Authorization:key=AAAAVD27CWY:APA91bE7YdKYiqTmQhErf0E3gm8lbgNt2KP5-xPQf83V7m8eKsa0ljktOLiGyzzrP0uxVNBHC6cyuJAPejkTyNl1DnoxcajesLvGXIzq3YR1l-wiFvoivRmIUkDvThTsKCJkZMomhEPp"--headerContent-Type:"application/json"https://android.googlea

php - ionic - 使用 PHP 的 firebase 通知不起作用

我想使用firebase将通知推送到我的Ionic2应用程序。我可以直接使用firebase控制台推送通知,但我想通过php文件发送它。当我发送时,我收到PHP的响应:{"message_id":5718309985299480645}而且手机里没有通知。我已将this.fcm.subscribeToTopic('all')放在app.component.ts构造函数中。我不知道我做错了什么..this.fcm.subscribeToTopic('all')是我应用中唯一与fcm相关的代码。我的PHP代码:'FCMPushNotifications');$target='/topics

php - Firebase PHP 数据提交 - arrayValue, mapValue

我正在尝试使用PHP和Googleapi将数据推送到firestore数据库。在我在网络上看到的文档和示例中,我可以在发送数据时使用mapValue和arrayValue。我使用的例子如下:-["orderName"=>["stringValue"=>"GbeilaAliuWahab"],"orderLocationName"=>["stringValue"=>"AccraMallLimited"],"orderTotalAmount"=>["doubleValue"=>150.5],"orderDescription"=>["stringValue"=>"LoremIpsumissi

php - Facebook API : What is the Max length of 'message' on wall?

我已经搜索了Facebook文档,但找不到可以传递给FacebookAPI的最大长度?如果我使用AJAX和PHPSDK向API传递一个大值,我既不会收到错误消息,也不会收到成功消息。(墙上没有留言)。我想限制用户使用正确的长度以避免任何问题。感谢您的帮助,卢克 最佳答案 如果消息是状态更新(也就是说,您不包括附件或操作链接),它最多可以包含420个字符。否则,如果帖子包含附件或操作链接,则消息最多可包含10,000个字符。 关于php-FacebookAPI:WhatistheMaxle