随笔 - 314  文章 - 1 评论 - 127 阅读 - 135万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  PHP

1 2 3 4 下一页
PHP Programe
Thinphp+nginx配置伪静态
摘要:location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } 阅读全文
posted @ 2021-12-05 20:08 garfieldtom 阅读(20) 评论(0) 推荐(0) 编辑
Thinkphp6 中的跨域请求设置 AllowCrossDomain中间件(转)
摘要:转:https://www.pianshen.com/article/6570998333/ tp6已经自己封装好了跨域请求的内置中间件,自己都快自己封装好了才发现。 使用; 在 app\middleware.php 文件中,引入内置中间件即可 \think\middleware\AllowCros 阅读全文
posted @ 2021-05-30 08:02 garfieldtom 阅读(961) 评论(0) 推荐(0) 编辑
php发送https请求
摘要:<?php function curl_get_https($url) { $curl = curl_init(); //如果需要参数,设置POST参数 $post_string = array('usercode'=>'123456','password'=>'123'); curl_setopt 阅读全文
posted @ 2021-04-22 17:01 garfieldtom 阅读(293) 评论(0) 推荐(0) 编辑
composer更新错误
摘要:composer更新时遇到错误: [Composer\Downloader\TransportException] Error while processing content unencoding: Unknown failure within decompression software. 此时 阅读全文
posted @ 2021-03-29 14:44 garfieldtom 阅读(330) 评论(0) 推荐(0) 编辑
ThinkPHP中的json对象
摘要:在ThinkPHP中,如果代码这样写: $res["user"] = "garfieldtom"; $res["age"] = "12"; $json = json($res); echo $json->getContent(); $list = json_decode($json->getCont 阅读全文
posted @ 2021-02-24 21:02 garfieldtom 阅读(750) 评论(0) 推荐(0) 编辑
thinkphp访问mysql中文字段问题
摘要:别人的数据库做接口,用到了中文字段,会报错,需要修改db/builder/mysql.php \w只匹配数字字母下划线,匹配不到汉字。 所以我们要在正则表达式上加上汉字匹配 if ($strict && !preg_match('/^[\w\.\*\x00-\xff]+$/', $key)) { t 阅读全文
posted @ 2020-12-11 10:37 garfieldtom 阅读(384) 评论(0) 推荐(0) 编辑
apache https访问配置
摘要:1.httpd-ssh.conf Listen 443SSLStrictSNIVHostCheck offSSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULLSSLProtocol all -SSLv2 阅读全文
posted @ 2020-12-11 07:09 garfieldtom 阅读(188) 评论(0) 推荐(0) 编辑
ThinkPHP6安装
摘要:使用国内镜像:https://docs.phpcomposer.com/ composer config -g repo.packagist composer https://packagist.phpcomposer.comLinux下出现错误:- topthink/framework v6.0. 阅读全文
posted @ 2020-06-14 15:23 garfieldtom 阅读(231) 评论(0) 推荐(0) 编辑
Ubuntu18.04 apache2配置ThinkPHP6
摘要:1.修改apache2的配置文件 /etc/apache2/apache2.conf 修改根目录和AllowOverride权限 <Directory /home/ubuntu/thinkphp/tp6/think/public/> Options Indexes FollowSymLinks Al 阅读全文
posted @ 2020-02-23 08:10 garfieldtom 阅读(1294) 评论(0) 推荐(0) 编辑
ThinkPHP中文字段问题
摘要:转自:https://www.baidu.com/link?url=Ohc9epgQgkNYLwnHqP-jZ9RfIQWW50-iz8-ZMIPLdtCIJHnUpYwQnDLmXzi7Fa110o_fej06HBQC2fJpNwXLP_&wd=&eqid=e71449f60000ca220000 阅读全文
posted @ 2019-12-19 16:12 garfieldtom 阅读(976) 评论(0) 推荐(0) 编辑
CentOS7安装Sql Server、apache2和php72及MSSQL驱动
摘要:CentOS7安装apache2和php72及MSSQL驱动 CentOS7版本: [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 安装httpd [root@localhost ~]# 阅读全文
posted @ 2019-09-06 13:27 garfieldtom 阅读(891) 评论(0) 推荐(0) 编辑
Centos7.5 php7.2 安装pdo_sqlsrv 连接 sql server(转)
摘要:Centos7.5 php7.2 安装pdo_sqlsrv 连接 sql server 转:https://blog.csdn.net/gdali/article/details/82912542 Centos7.5 php7.2 安装pdo_sqlsrv 连接 sql server 转:https 阅读全文
posted @ 2019-08-31 22:27 garfieldtom 阅读(2583) 评论(0) 推荐(0) 编辑
CentOS7安装Apache2和PHP7
摘要:安装Apache 2.4 更新源:rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic- 阅读全文
posted @ 2019-08-31 16:12 garfieldtom 阅读(3487) 评论(1) 推荐(0) 编辑
PHP访问SQL Server驱动对应关系
摘要:引用地址: https://docs.microsoft.com/en-us/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017 System Requirements for the Mic 阅读全文
posted @ 2019-04-11 21:37 garfieldtom 阅读(1086) 评论(1) 推荐(0) 编辑
PHP存储blob示例(转)
摘要:原文:http://www.mysqltutorial.org/php-mysql-blob/ 阅读全文
posted @ 2016-12-23 15:17 garfieldtom 阅读(12403) 评论(0) 推荐(0) 编辑
visual studio code(vscode) 调试php(转)
摘要:原文链接:http://www.cnblogs.com/CLR010/p/5276077.html visual studio code(vscode) 调试php 1.下载vscode (visual studio code)。 2.安装vscode 扩展 php-debug 安装步骤见 http 阅读全文
posted @ 2016-12-15 14:37 garfieldtom 阅读(4234) 评论(0) 推荐(2) 编辑
ThinkPHP升级指导
摘要:升级指导 http://www.kancloud.cn/manual/thinkphp5/163239 升级指导 http://www.kancloud.cn/manual/thinkphp5/163239 从V5.0.1升级到V5.0.2 从V5.0.1升级到V5.0.2需要注意如下事项: 下列模 阅读全文
posted @ 2016-11-09 21:12 garfieldtom 阅读(1384) 评论(0) 推荐(0) 编辑
微信官方demo(php)
摘要:valid(); class wechatCallbackapiTest { public function valid() { $echoStr = $_GET["echostr"]; //valid signature , option if($this->checkSignature()){ ech... 阅读全文
posted @ 2016-11-03 16:42 garfieldtom 阅读(1417) 评论(0) 推荐(0) 编辑
微信公众号获取的图片不能正常显示的问题
摘要:目前已经获取微信公众号发布的图片,但不能正常显示 提示:此图片来自微信公众平台 未经允许不得引用查看了一下他的地址是这样的:(http://mmbiz.qpic.cn/mmbiz/qqz4WKmibGPptReVk5OPKp0hfPYx2s4BGDZZZHyOBs2drnsxxdYwdm99KykN 阅读全文
posted @ 2016-06-10 14:27 garfieldtom 阅读(1390) 评论(0) 推荐(0) 编辑
jQuery简单的Ajax调用示例
摘要:jQuery确实方便,下面做个简单的Ajax调用:建立一个简单的html文件: 通过 AJAX 改变文本 Ajax改变内容 好了,点击按钮就可以看到效果了。当然,jQuery的Ajax调用可以控制项很多,这里演示了简单的调用。注意你自己的jquery... 阅读全文
posted @ 2015-02-06 17:44 garfieldtom 阅读(220770) 评论(1) 推荐(4) 编辑

1 2 3 4 下一页
点击右上角即可分享
微信分享提示