
php
卡伦啊
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
宝塔 + thinkcmf6 部署配置
配置好nginx 和代码后设置伪静态 location / { index index.php index.html index.htm; #如果请求既不是一个文件,也不是一个目录,则执行一下重写规则 if (!-e $request_filename) { #地址作为将参数rewrite到index.php上。 rewrite ^/(.*)$ /index.php?原创 2021-11-29 16:12:40 · 1379 阅读 · 0 评论 -
composer autoload 自定义导入配置
其中autoload 有两种自定义的配置1classmap 数组 为文件目录地址 可以引入目录中的php文件2 files数组 为文件地址 可以引入具体的php文件通过这样的设置 可以替换相同命名空间,相同类名 的文件如 cmf\lib 中的 Upload.php 该文件 被方式 1引入 可以替换 tp自带的upload 文件(vendor\thinkcmf\cmf\src\lib\Upload.php) 其他原本调用该文件的文件 直接修改为新文件可以实现 无侵入式的代码...原创 2021-06-28 11:33:28 · 458 阅读 · 1 评论 -
基于phpStorm 的 php 断点调试
使用到了 XDebug 扩展https://pecl.php.net下载对应的插件 windows需要手动下载复制粘贴Linux 可以下载tar通过命令安装在php.ini中开启扩展[XDebug]xdebug.remote_enable=1;远程访问开启zend_extension="C:\phpStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug.dll" ;dll路径注意经测试由于未知原因目前只有php7.0可以 7.0以后不..原创 2021-06-28 11:21:42 · 125 阅读 · 0 评论 -
php无法访问外部链接
php无法访问外部链接故障原因 可能是 添加了断点调试? 莫名其妙的在php.ini中添加; Whether to allow the treatment of URLs (like http:// or ftp://) as files.allow_url_fopen = On; Whether to allow include/require to open URLs (like http:// or ftp://) as files.allow_url_include = O...原创 2020-12-04 11:06:12 · 373 阅读 · 0 评论