首页
发现
标签
搜索
APP下载
注册
登录
首页
发gggg2现
榜单
标签
APP下载
搜索
注册
登录
搜索
LisonRead
本次搜索耗时
0.154
秒,为您找到
296
个相关结果.
搜书籍
搜文档
nginx配置php服务(多个)大部分网站开发语言
37
2022-04-20
《PHP》
nginx配置php服务(多个) 大部分网站开发语言都要运行在服务器,比如主流的nginx、apache等等,部署服务器环境还是有点小复杂的,其实搞懂了之后也是很简单易用的。今天就记录下部署php+nginx。 系统:mac、linux 1、安装好php和nginx程序,并运行。 2、找到nginx.conf文件,默认在/etc/ngin...
二维数组重复排序 //$temp=array_c
37
2018-10-12
《PHP》
二维数组重复排序 //$temp= array_column($data,'catid'); //array_multisort($temp, SORT_ASC, $data);
ThinkPHP5和ThinkPHP6的区别1.安
37
2021-12-13
《Thinkphp》
ThinkPHP5和ThinkPHP6的区别 1.安装方式 thinkphp6只能通过composer安装 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer # 设置composer为阿里云镜像,解决国内使用composer慢的问题compos...
mysql5.7的A表数量达到了3千万,如何按年份进行分表
36
2025-05-29
《Thinkphp》
一、目录结构调整 二、数据库配置(config/database.php) 三、数据模型(app/model/DataModel.php) 四、分表服务类(app/service/ShardingService.php) 五、命令行工具(app/command/MigrateData.php) 六、路由动态解析(app/controller/Bas...
thinkphp6随机取6条数据
36
2024-10-22
《Thinkphp》
方式一: 这种方式不适合id不连续的方法: $data_start = date('Y-m-d 00:00:00',time()); // $data_now = date('y-m-d H:i:s',time()); // $list = Db::connect('xxx')->name('top_douyin...
thinkphp6:$model = $model
36
2021-10-27
《Thinkphp》
thinkphp6: $model = $model -> whereExists ( function ( $query ) { $query -> table ( 'eb_cue_plan' ) -> where ( 'platform_id' , 2 ) -> whereRaw ( 'eb_cue_plan....
session过期 thinkphp(TP3.1)
36
2020-11-13
《Thinkphp》
session过期 thinkphp(TP3.1) Base/Common/functions.php: function session($name,$value='') { if(isset($name['expire'])) ini_set('session.gc_maxlifetime', $name['expire']);ini_...
获取客户端IP地址,第一种: functiong
36
2018-12-21
《PHP》
获取客户端IP地址,第一种: function get_client_ip($type = 0) { $type = $type ? 1 : 0; static $ip = NULL; if ($ip !== NULL) return $ip[$type]; if (isset($_SERVER['HT...
对二维数组排序 $order='aa_c
35
2019-03-11
《PHP》
对二维数组排序 $order = 'aa_count'; $ages = array(); foreach ($reportList as $v) { $ages[] = $v[$order]; } array_multisort($ages, SORT_DESC, $reportList);
//图片上传 publicfunctionimg
35
2018-08-08
《PHP》
//图片上传 public function imgupload(){ //判断文件上传是否出错 if($_FILES["file"]["error"]) { echo $_FILES["file"]["erroe"]; }else{ ...
1..
«
11
12
13
14
»
..30