美文网首页
[PHP高可用后端]③⑦--整体功能调试

[PHP高可用后端]③⑦--整体功能调试

作者: 子木同 | 来源:发表于2017-11-24 15:14 被阅读15次
微信截图_20171124143359.png 微信截图_20171124150247.png 微信截图_20171124145355.png

Uploader.class.php

 /**
     * 获取当前上传成功文件的各项信息
     * @return array
     */
    public function getFileInfo()
    {
        return array(
            "state" => $this->stateInfo,
            "url" => DOMAIN.$this->fullName,
            "title" => $this->fileName,
            "original" => $this->oriName,
            "type" => $this->fileType,
            "size" => $this->fileSize
        );
    }
 "url" => DOMAIN.$this->fullName,

controller.php

date_default_timezone_set("Asia/chongqing");
error_reporting(E_ERROR);
header("Content-Type: text/html; charset=utf-8");
define('DOMAIN','http://singwa.com');
$CONFIG = json_decode(preg_replace("/\/\*[\s\S]+?\*\//", "", file_get_contents("config.json")), true);
$action = $_GET['action'];
define('DOMAIN','http://singwa.com');
image.png

相关文章

网友评论

      本文标题:[PHP高可用后端]③⑦--整体功能调试

      本文链接:https://www.haomeiwen.com/subject/apffbxtx.html