'session'                => [
       'id'             => '',
       // SESSION_ID的提交变量,解决flash上传跨域
       'var_session_id' => '',
       // SESSION 前缀
       'prefix'         => 'think',
       // 驱动方式 支持redis memcache memcached
       'type'           => 're            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2017-05-16 21:07:13
                            
                                2270阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            优点1、Queue内置了 Redis,Database,Topthink ,Sync这四种驱动,本文使用Redis驱动2、Queue消息队列适用于大并发或者返回结果 时间有点长并需要批量操作的第三方接口,可用于短信发送、邮件发送、APP推送3、Queue消息消息可进行发布,获取,执行,删除,重发,失败处理,延迟执行,超时控制等操作流程图  创建队列文件路径:application\com            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2024-03-13 17:53:07
                            
                                254阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            php报错PHP Warning:  require(): open_basedir restriction in effect. File(/home/wwwroot/xxx.com/vendor/autoload.php) is not within the allowed path(s): (/home/wwwroot/xxx.com/public/:/tmp/:/proc/) in /ho            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-11-20 09:52:00
                            
                                476阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            Windows版安装a)使用composer create-project topthink/think testTG,来安装thi            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-08-18 12:01:59
                            
                                253阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            thinkphp5 扩展redis Linux搭建redis php搭建redis第一步:Linux搭建redis新人小白,在自己服务器上想搭个redis玩玩,百度到了一堆坑。搭建redis需linux服务器安装redis(百度的方法大部分都是win下) 下面附教程。亲测(以下文章自己测试后细节讲解)1.下载地址:wget http://download.redis.io/releases/red            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-08-22 16:34:56
                            
                                457阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            1.安装redis ,并启动redis服务2.安装php redis 拓展3.在redis.php中添加配置<?php
return [
    'host' => '127.0.0.1',
    'port' => '6379',
];在根目录extend里新建redis目录,并在其里面建Redis.php文件,文件内容如下:<?php
namespace redi            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-06-29 11:58:54
                            
                                302阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            今天想让PHPstudy使用redis,于是找了些资料安装成功了,因此在此记录安装流程。 第一步:在机器上装好redis软件(1)下载redis并且使用 下载地址:https://github.com/dmajkic/redis/downloads; 进去后根据自己电脑的版本进行相应的下载,下载完是一个压缩包,对其解压后如图: 这个是目前最新版本的并且支持64位和32位的。然在某个地方创建一个新的            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-10-15 10:33:53
                            
                                191阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            为啥要学?还不是因为自己菜,队列之前的接触的也少,正好这2天没啥事,就想好好了解一下队列的基本使用,至少以后别人问起来,我也能大胆的说自己用过啊!notice:queue安装,自行composer就行,不过要注意版本,因为现在已经出到TP6了首先我们需要先创建队列,不赘述了,直接上代码支持的队列方式有很多:db,redis等等,这里使用的redis队列如果你安装成功在你tp5.1的config文件            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2023-08-03 15:18:33
                            
                                321阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            thinkphp采用cache类提供缓存功能支持,采用驱动方式,在使用缓存之前需要进行初始化操作。支持的缓存类型包括file、memcache、wincache、sqlite、redis和xcache等,默认情况下是file类型,配置redis缓存可以单一配置redis也可以同时使用多个缓存类型。配            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2018-10-19 08:24:00
                            
                                391阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            ThinkPHP5 隐藏index.php问题 thinkphp模板输出cookie,session中…            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-07-09 15:08:24
                            
                                283阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            混杂模式        $where = [];        array_push($where, 'create_user_id=4 or create_user_id=17');        array_push($where, 'province like "山%"');        $where['city'] = array('=', '济南');        ...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-08-13 01:01:54
                            
                                494阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            1.pconnect    /**     * Connects to a Redis instance or reuse a connection already established with pconnect/popen.     *     * The connection will not be closed on close or end of request until...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-01-19 14:02:24
                            
                                247阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            1.连接函数    /**     * Connects to a Redis instance.     *     * @param string    $host       can be a host, or the path to a unix domain socket     * @param int       $port       optional     * ...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2018-08-25 07:39:16
                            
                                205阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            1.连接函数    /**     * Connects to a Redis instance.     *     * @param string    $host       can be a host, or the path to a unix domain socket     * @param int       $port       optional     * ...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-01-19 14:02:24
                            
                                66阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            我用的环境是phpstudy,php版本是5.6,thinkphp连接sql server 方法如下: 1、修改database.php文件里的数据库信息 2、进入php扩展目录。我的是“E:\phpstudy\PHPTutorial\php\php-5.6.27-nts\ext”,查看目录下是否有            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-04-25 06:19:28
                            
                                229阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            1.pconnect    /**     * Connects to a Redis instance or reuse a connection already established with pconnect/popen.     *     * The connection will not be closed on close or end of request until...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2018-08-25 08:16:20
                            
                                302阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Thinkphp5学习笔记 架构 Thinkphp5目录架构 thinkphp 应用部署目录 ├─application 应用目录(可设置) │ ├─common 公共模块目录(可更改) │ ├─index 模块目录(可更改) │ │ ├─config.php 模块配置文件 │ │ ├─common ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-09-08 11:44:00
                            
                                435阅读
                            
                                                                                    
                                2评论