1 Star 1 Fork 1

open-resource/rockmongo-php7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
require_once './vendor/autoload.php';
/**
* RockMongo startup
*
* In here we define some default settings and start the configuration files
* @package rockmongo
*/
/**
* Defining version number and enabling error reporting
*/
define("ROCK_MONGO_VERSION", "1.1.8");
error_reporting(E_ALL);
/**
* Environment detection
*/
if (!version_compare(PHP_VERSION, "5.0")) {
exit("To make things right, you must install PHP5");
}
if (!class_exists("Mongo") && !class_exists("MongoClient")) {
exit("To make things right, you must install php_mongo module. <a href=\"http://www.php.net/manual/en/mongo.installation.php\" target=\"_blank\">Here for installation documents on PHP.net.</a>");
}
// enforce Mongo support for int64 data type (Kyryl Bilokurov <[email protected]>)
if (PHP_INT_SIZE == 8) {
ini_set("mongo.native_long", 1);
ini_set("mongo.long_as_object", 1);
}
/**
* Initializing configuration files and RockMongo
*/
require "config.php";
require "rock.php";
rock_check_version();
rock_init_lang();
rock_init_plugins();
Rock::start();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/open-resource/rockmongo-php7.git
[email protected]:open-resource/rockmongo-php7.git
open-resource
rockmongo-php7
rockmongo-php7
master

搜索帮助