首页 > TAG信息列表 > tp3.2

tp3.2 Redis使用

http://www.cnblogs.com/yun007/p/3705353.html根据这个配置redis注意php_redis.dll这个要和PHP的版本必须吻合 还有就是电脑的操作系统$redis = new \Redis();$redis->connect('127.0.0.1',6379);$redis->set('test','hello redis');echo $redis->get('test&#

Tp3.2 Workerman使用

workerman使用 检测是否支持 % curl -Ss http://www.workerman.net/check.php | php PHP Version >= 5.3.3 [OK] Extension pcntl check [OK] Extension posix check [OK] composer 安装 % composer require workerman/wor

简单介绍Nginx tp3.2.3 404问题解决方案

这篇文章主要介绍了Nginx tp3.2.3 404问题解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下 最近我把Apache给换成nginx,当我把tp项目搬过去运行的时候发现404 错误 ,原来是因为nginx不支持 pathinfo 模式,需要自己配

nginx 完美解决tp3.2.3 404问题

最近我把Apache给换成nginx,当我把tp项目搬过去运行的时候发现404 错误 ,原来是因为nginx不支持 pathinfo 模式,需要自己配置 下面我配置 在server配置里面 location / {         #root html         index index.html index.htm index.php ;         if (!-e $request_f

tp3.2老旧项目的一些坑

搞了套小程序源码,后端是古老的tp3.2,用laradock部署环境,遇到了好几个问题哦~ 一,在.env种配置项目地址和镜像内对应的地址 vim .env   APP_CODE_PATH_HOST=   配置linux本机中的项目地址 APP_CODE_PATH_CONTAINER=   将本机中的项目地址自动映射到镜像中的/var/www 目录 二,t

TP3.2 日期默认格式

<input type="text" id="create_time" name="create_time" required="" autocomplete="off" class="layui-input" value="{$result['create_time']?$result['create_time']|date=&#

tp3.2下载文件

tp3.2下载文件,下载excel,注意文件编码,直接上代码: header("Content-type:text/html;charset=utf-8"); $file_name = "123.xlsx";//文件名,尽量不要用中文,如果用中文,需要转码 $file_sub_path = DOC_ROOT . '/Download/temp/';//文件存放的路径

基于tp3.2的腾讯云短信验证码的实现

新手小白在公司要完成短信验证码注册功能,最初由于没有经验,网上的教程又不是很全,便参考着官方API文档,进行开发 直接进入正题:使用composer下载腾讯云短信接口(记得添加依赖)。在项目目录下新建composer.json,写入以下内容 { "require": { "qcloudsms/qcloudsms_php": "0.1.*" },}

【TP3.2.3】addAll方法的坑

问题:做一个导入Excel到数据库的功能中需要用到addAll功能,但是每次执行到addAll()时都会报错,如下 Insert value list does not match column list: 1136 Column count doesn't match value count at row 1  问题原因:mysql.class.php文件的insertAll方法存在缺陷 foreach ($data

tp3.2数据库事务使用例子

   public function index(){  6         //echo 111; 7         $data['operator'] = 'Testss'; 8         M()->startTrans(); 9         $result = M('feehistory')->add($data);10         $result1 = $result2 

nginx下TP3.2访问页面总是404

这是我测试onethink用的配置 可以参考一下   server { listen 80; server_name onethink.dev www.onethink.dev; root /vagrant/www/onethink; index index.php; location / { if ( -f $request_filename) { break; }