上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: PHP判断是否微信浏览器打开 <?php function is_wx(){ $wxua = $_SERVER['HTTP_USER_AGENT']; //MicroMessenger 是android/iphone版微信所带的 //Windows Phone 是winphone版微信带的 (这个标 阅读全文
posted @ 2022-03-21 15:26 MargoHu 阅读(288) 评论(0) 推荐(0) 编辑
摘要: PHP:判断客户端是否使用代理服务器及其匿名级别 要判断客户端是否使用代理服务器,可以从客户端所发送的环境变量信息来判断。 具体来说,就是看HTTP_VIA字段,如果这个字段设置了,说明客户端使用了代理服务器。 匿名级别可以参考下表来判断。 给出一个应用例子,可以挂上代理试试效果: http://i 阅读全文
posted @ 2021-12-08 09:49 MargoHu 阅读(412) 评论(0) 推荐(0) 编辑
摘要: open_basedir restriction in effect. 原因与解决方法 今天一位朋友在linux服务器部署thinkphp5的时候PHP报了这个错误,如下: Warning: require(): open_basedir restriction in effect. File(/w 阅读全文
posted @ 2021-12-07 16:08 MargoHu 阅读(954) 评论(0) 推荐(0) 编辑
摘要: shopxo安装插件被限制必须绑定账号的问题 1.安装了插件,但是还是被限制了必须绑定商店 2.打开项目文件,shopxo/app/service/StoreService.php找到PluginsLegalCheck()方法,即第220行 注释掉,且找到第274行的RemoteStoreData( 阅读全文
posted @ 2021-10-29 12:02 MargoHu 阅读(1002) 评论(1) 推荐(1) 编辑
摘要: ShopXo框架如何去掉绑定商店的提示? 第一步:下载框架代码(下载地址:https://doc.shopxo.net/article/1/260667682158804992.html) 第二步:下载phpstudy(PHP开发集成环境https://www.xp.cn/linux.html)。 阅读全文
posted @ 2021-10-29 10:36 MargoHu 阅读(454) 评论(0) 推荐(1) 编辑
摘要: docker run -tid --name baota -p 80:80 -p 443:443 -p 8888:8888 -p 888:888 -p 3306:3306 -p 3307:3307 --privileged=true --shm-size=1g --restart always -v 阅读全文
posted @ 2021-09-02 17:21 MargoHu 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 守护进程 supervisor 安装配置 supervisor 安装 supervisor # sudo su - #切换为root用户 # yum install epel-release # yum install -y supervisor # systemctl enable supervi 阅读全文
posted @ 2021-08-19 15:45 MargoHu 阅读(242) 评论(0) 推荐(0) 编辑
摘要: PHP实现异步请求非阻塞 function fosck_post($url, $param){ $host = parse_url($url, PHP_URL_HOST); $port = 80; $urlInfo = parse_url($url); if (isset($urlInfo['sch 阅读全文
posted @ 2021-08-16 17:36 MargoHu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: PHP实现图片和文字水印 /************************************************图片水印功能开始************************************************************/ /** * @desc 图片添加文字 阅读全文
posted @ 2021-07-17 14:10 MargoHu 阅读(779) 评论(3) 推荐(0) 编辑
摘要: TP框架使用命令行 <?php namespace app\command; use think\Db; use app\shopee\Item; use think\console\Input; use think\console\Output; use think\console\Command 阅读全文
posted @ 2021-06-17 14:58 MargoHu 阅读(58) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页