嘿,我正在iOS上构建应用程序,并想实现PushNotifications。
我正在使用https://github.com/manifestinteractive/easyapns中的EasyAPNS代码
配置它时,我显然必须在DB_Connect php文件中添加Mysql-database信息。我对php不太满意,因此我对如何在文件中正确输入信息一无所知,因为在教程中我一直看着文件看起来总是不一样。你们能给我有关如何进行的任何指导吗?谢谢,oengelha。
这里的代码片段:
/**
* Constructor. Initializes a database connection and selects our database.
* @param string $host The host to wchich to connect.
* @param string $username The name of the user used to login to the database.
* @param string $password The password of the user to login to the database.
* @param string $database The name of the database to which to connect.
*/
function __construct($host, $username, $password, $database)
{
$this->DB_HOST = $host;
$this->DB_USERNAME = $username;
$this->DB_PASSWORD = $password;
$this->DB_DATABASE = $database;
}
最佳答案
这应该有帮助
function __construct()
{
$this->DB_HOST = 'Your Host';
$this->DB_USERNAME = 'Your Username'; // !!! CHANGE ME
$this->DB_PASSWORD = 'Your Password'; // !!! CHANGE ME
$this->DB_DATABASE = 'Your Database'; // !!! CHANGE ME
}
祝你好运!
关于ios - EasyAPNS配置,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10502674/