02 2017 档案
摘要:1:反向代理,通过反向代理,使客户访问你的网站的时候,可以跳转到你指定的网站 配置:/phpstudy/server/nginx/conf/nginx.conf 中 location / { index index.html index.htm index.php; proxy_pass http:
阅读全文
摘要:$data=M("news")->select(); $str="编号,主题,时间"."\r\n"; foreach($data as $k=>$v) { $str.=$v['news_id'].",".$v['news_title'].",".$v['insert_time']."\r\n"; }
阅读全文
摘要:<?phpclass dbBackup { public $host='127.0.0.1'; //数据库地址 public $user='root'; //登录名 public $pwd='root'; //密码 public $database; //数据库名 public $charset='
阅读全文
摘要:第二种方法使用php类库PHP QR Code;下载地址:http://pan.baidu.com/s/1eQrFVUi ;或者在官网下载:http://phpqrcode.sourceforge.net 第二种方法使用php类库PHP QR Code;下载地址:http://pan.baidu.c
阅读全文
摘要:$mysqli = mysqli_init(); //初始化mysqli $mysqli->options(MYSQLI_OPT_CONNECT_TIMEOUT, 2);//设置超时时间$mysqli->real_connect('127.0.0.1', 'root', '', 'test');$m
阅读全文
摘要:首先需要在php中装上redis扩展网上搜window下php中安装redis扩展进行安装/* php代码如下 */$redis = new Redis();echo "<pre>";$redis->connect("192.168.1.54","6379"); //php客户端设置的ip及端口//
阅读全文
摘要:/* 5张表 */ admin(管理员表): admin_id (管理员表自增id) admin_name (varchar 45) password (char 32) admin_status(tinyint ) 是否启用 last_time (int) last_ip (varchar 15)
阅读全文
摘要:第一种解决办法是关闭Csrf 第二种解决办法是在form表单中加入隐藏域 第三种解决办法是在AJAX中加入_csrf字段
阅读全文

浙公网安备 33010602011771号