首页
Dart
Flutter
Kotlin
java
Android
JavaScript
Python
Kali Linux
PHP
PHP-手册<网站>
SQL
其他
本站功能使用教程
常用网站收录
提问的智慧
写文章
登录
注册
首页
Dart
Flutter
Kotlin
java
Android
JavaScript
Python
Kali Linux
PHP
PHP-手册<网站>
SQL
其他
本站功能使用教程
常用网站收录
提问的智慧
登录
注册
找回密码
PHP
共26篇
排序
更新
浏览
点赞
评论
thinkphp6.0 代码报错集 [收集各种报错解决方法]
报错代码:Call to undefined method think\Db::table() 解决方法:要引入文件use think\Facade\Db;
PHP
趙哥
2年前
0
237
14
Thinkphp6 WorkerMan中如何向某个特定客户端发送数据
<?php declare (strict_types=1); namespace app\server; use think\worker\Server; use Workerman\Connection\TcpConnection; class index extends Server { protected $protocol = 'websoc...
PHP
趙哥
2年前
0
1169
15
PHP 类型转换三种
(int)、(integer):转换成整形 (float)、(double)、(real):转换成浮点型 (string):转换成字符串 (bool)、(boolean):转换成布尔类型 (array):转换成数组 (object):转换...
PHP
趙哥
2年前
0
175
15
thinkphp6.0 Session
Session 是服务端存储,在使用 Session 之前,需要开启初始化,在中间件文件 middleware.php; // Session 初始化 \think\middleware\SessionInit::class TP6.0 不支持原生$_SESSION 的获取方式...
PHP
趙哥
2年前
0
408
10
thinkphp5 命令行使用
应用管理描述addon插件管理器build构建应用目录install安装 FastAdmin 控制器和模型描述make:controller创建新的资源控制器类make:model创建新的模型类 优化和缓存描述optimize:autoload优化 PS...
PHP
趙哥
1年前
0
304
0
PHP 取中间文本
function getSubstr($str, $leftStr, $rightStr) { $left = strpos($str, $leftStr); //echo '左边:'.$left; $right = strpos($str, $rightStr,$left); //echo '<br>右边:'.$right; i...
PHP
趙哥
2年前
0
207
6
thinkphp6.0 cookie
Cookie 是客户端存储,默认情况下是开启初始化的,在 config/cookie.php: ::set()方法,创建一个最基本的 cookie,可以设置前缀、过期时间、数组等; Cookie::set('user', 'Mr.Lee'); //临时保...
PHP
趙哥
2年前
0
522
15
PHP getimagesize() read error 解决方法
出现 'PHP Notice: getimagesize(): Read error' 错误通常表示 getimagesize() 函数无法从指定的文件中读取图像数据,因此无法获取图像的大小和类型信息。这个问题可能有几个不同的原因,下面列...
PHP
趙哥
1年前
0
237
0
PHP获取公网ip
function getpublicip() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $cip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $cip = $_SERVER['HTTP_X_...
PHP
趙哥
2年前
0
355
5
thinkphp6.0 缓存功能
系统内置了很多类型的缓存,除了 File,其它均需要结合相关产品; 我们这里主要演示 File 文本缓存,其它的需要学习相关产品; 配置文件 cache.php 进行缓存配置,默认生成在 runtime/cache 目...
PHP
趙哥
2年前
0
720
7
加载更多
在手机上浏览此页面
登录
没有帐号?立即注册
手机号或邮箱
验证码
发送验证码
记住登录
帐号密码登录
登录
用户名/手机号/邮箱
登录密码
记住登录
找回密码
|
免密登录
登录
注册
已有帐号,立即登录
设置用户名
手机号或邮箱
验证码
发送验证码
设置密码
注册
注册即表示同意
用户协议
、
隐私声明