首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
写文章
登录
首页
Dart
Flutter
Python
FastApi
PHP
Laravel
Thinkphp
JavaScript
Vue
TypeScript
autojs
Android
java
C/C++
Kotlin
SQL
Mysql
Linux
Kali Linux
Docker
Shell
其他
本站功能使用教程
常用网站收录
提问的智慧
Google翻译镜像站
本站同款主题
登录
找回密码
PHP
共41篇
一种服务器端脚本语言,适合开发网站和动态网页,语法简单,内置丰富函数,是许多网站后台(如 WordPress)的基础。
排序
更新
浏览
点赞
评论
thinkphp6 Filesystem文件系统类的使用
config/filesystem.php配置文件中配置上传根目录及上传规则,例如: return [ 'default' => 'local', 'disks' => [ 'local' => [ 'type' => 'local', 'root' => app()->getRu...
# PHP
# thinkphp6.0
趙哥
3年前
0
2113
6
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
# websocket
# Workerman
趙哥
3年前
0
1295
15
thinkphp6扩展库Workerman的使用(websocket)
Workerman Workerman是一款纯PHP开发的开源高性能的PHP socket 服务器框架。被广泛的用于手机app、手游服务端、网络游戏服务器、聊天室服务器、硬件通讯服务器、智能家居、车联网、物联网等领域...
# PHP
# websocket
# Workerman
趙哥
3年前
0
884
12
thinkphp6.0 上传功能
如果要实现上传功能,首先需要建立一个上传表单,具体如下:<form action='http://localhost/tp6/public/upload' enctype='multipart/form-data' method='post'> <input type='file' n...
# PHP
# thinkphp6.0
趙哥
3年前
0
854
13
PHP 中 16 个魔术方法详解
前言 PHP中把以两个下划线__开头的方法称为魔术方法(Magic methods),这些方法在PHP中充当了举足轻重的作用。魔术方法包括: __construct(),类的构造函数 __destruct(),类的销毁构造函数 __c...
趙哥
4年前
0
837
10
thinkphp6.0 缓存功能
系统内置了很多类型的缓存,除了 File,其它均需要结合相关产品; 我们这里主要演示 File 文本缓存,其它的需要学习相关产品; 配置文件 cache.php 进行缓存配置,默认生成在 runtime/cache 目...
# PHP
# thinkphp6.0
趙哥
3年前
0
745
7
thinkphp6.0 多语言
1.如果要开启多语言切换功能,中间件定义文件 middleware.php 开启; // 多语言加载 \think\middleware\LoadLangPack::class, 2. 配置文件在 config/lang.php 文件,默认设置的是 zh-cn 中文语...
# PHP
# thinkphp6.0
趙哥
3年前
0
726
7
thinkphp6 常用cmd命令
clear 清除运行时文件 help 显示命令的帮助 list 列出命令 run ThinkPHP 运行 PHP 内置服务器 version 显示 thinkphp 框架版本 make:command 创建一个新的命令类 make:controller 创建一个新的...
# PHP
# thinkphp6
趙哥
3年前
0
622
10
thinkphp6.0 cookie
Cookie 是客户端存储,默认情况下是开启初始化的,在 config/cookie.php: ::set()方法,创建一个最基本的 cookie,可以设置前缀、过期时间、数组等; Cookie::set('user', 'Mr.Lee'); //临时保...
# PHP
# thinkphp6.0
趙哥
3年前
0
610
15
thinkphp6.0开启debug模式
#开启跟踪器 APP_TRACE=true #数据库配置项 DATABASE_TYPE=mysql #数据库类型 DATABASE_HOSTNAME=localhost #数据库地址 DATABASE_DATABASE=#数据库名称 DATABASE_USERNAME=#数据用户名 DATAB...
# PHP
# thinkphp
趙哥
3年前
0
566
15
加载更多
在手机上浏览此页面
登录
手机号或邮箱
验证码
发送验证码
记住登录
账号密码登录
登录
用户名/手机号/邮箱
登录密码
记住登录
找回密码
|
免密登录
登录