Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios EasyAPNS配置_Ios - Fatal编程技术网

Ios EasyAPNS配置

Ios EasyAPNS配置,ios,Ios,嘿,我正在iOS上构建一个应用程序,希望实现推送通知。 我正在使用来自的EasyAppns代码 在配置它时,我必须在DB_Connect php文件中添加Mysql数据库信息。我不擅长php,所以我不知道如何准确地在文件中输入我的信息,因为在教程中我看到的文件看起来总是不同的。你们能给我一些关于如何进行的指导吗?蒂纳克斯,奥恩格尔哈 下面是代码片段: /** * Constructor. Initializes a database connection and selects our

嘿,我正在iOS上构建一个应用程序,希望实现推送通知。 我正在使用来自的EasyAppns代码 在配置它时,我必须在DB_Connect php文件中添加Mysql数据库信息。我不擅长php,所以我不知道如何准确地在文件中输入我的信息,因为在教程中我看到的文件看起来总是不同的。你们能给我一些关于如何进行的指导吗?蒂纳克斯,奥恩格尔哈

下面是代码片段:

/**
    * 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
}
祝你好运