phpusethink\facade\Env;return[// 默认使用的数据库连接配置'default'=>Env::get('database.driver','mysql'),// 自定义时间查询规则'time_query_rule'=> [],// 自动写入时间戳字段// true为自动识别类型 false关闭// 字符串则明确指定时间字段类型 支持 int timestamp datetime date'auto_timestamp'=>t...
设置上传目录 修改文件 config/filesystem.php <?phpreturn[// 默认磁盘'default'=>env('filesystem.driver','local'),// 磁盘列表'disks'=> ['local'=> ['type'=>'local','root'=>app()->getRuntimePath() .'storage', ],'public'=> [// 磁盘类型'type'=>'local',// 磁盘路径'root'=>app...
// 写入日志, string|array $message Log::channel('api-controller')->write($message, 'info'); ThinkAdmin - 安装 管理员默认账户 username: admin password: admin 下载ThinkAdmin 去gitee 把ThinkAdmin- v6 下载下来,再下载一个 thinkphp 6 的裸框架。 然后把app/admin/和app/index/复制到现有 tp6 项...
define('_PHP_FILE_',$_SERVER['SCRIPT_NAME']); define('__APP__', ''); 1 23.Linux 下ThinkPHP项目出现_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Admin/0dfec61edd66f450033aa87c28a760f4.php 因为日志文件夹没有执行权限.这时要给他加上权限...
(PHP格式) * @param string$file 配置文件名 * @param string$name 配置名(如设置即表示二级配置) * @param string$range 作用域 * @return mixed */ Config::load($file, $name = '', $range = '') /** * 检测配置是否存在 * @param string$name 配置参数名(支持二级配置 .号分割) * @param...
($file) /** * 获取环境变量值 * @access public * @param string$name 环境变量名 * @param mixed $default 默认值 * @return mixed */ Env->get($name = NULL, $default = NULL) $this->getEnv($name, $default = NULL) /** * 设置环境变量值 * @access public * @param string|array $...
windows上用apache做反向代理 Nginx配置双重用户认证 IIS500报错“发生未知FastCGI错误”问题 使用伪静态.htaccess实现单个站点下访问多个网站 Windows 安装PHP SG11插件 Nginx访问PHP文件报错File not found. IIS建站后访问报错: {"error":"could not find driver"} 关于windows和linux区分大小写的相关处理 centos7系统...
#listen [::]:80default_server ipv6only=on; server_name _; index index.html index.htm index.php; root/home/wwwroot/default; #error_page404/404.html; # Deny access to PHP filesinspecific directory #location~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; } ...
ipv6 * @return bool */ $this->ip($value, $rule); /** * 验证上传文件后缀 * @access protected * @param mixed $file 上传文件 * @param mixed $rule 验证规则 * @return bool */ $this->fileExt($file, $rule); /** * 验证上传文件类型 * @access protected * @param mixed $file 上传...
#listen [::]:80default_server ipv6only=on; server_name www.lnmp.org; index index.html index.htm index.php; root/home/wwwroot/default; #error_page404/404.html; include enable-php.conf; location/nginx_status { stub_status on; access_log off; ...