上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 76 下一页
摘要: /*创建表*/ CREATE TABLE tb_test ( id int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键', name varchar(100) NOT NULL DEFAULT '' COMMENT '名称', user_id int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用... 阅读全文
posted @ 2016-10-28 18:39 浮尘微光 阅读(277) 评论(0) 推荐(0)
摘要: 【Git使用技巧】 1.把一个已经存在于版本库中的文件加入忽略提交文件(.gitignore)中,需要如下代码: git rm --cached [文件路径] 例如: git rm --cached app/App/Common/Library/MCD.class.php 2.使用 git s 代替 阅读全文
posted @ 2016-10-28 18:38 浮尘微光 阅读(338) 评论(0) 推荐(0)
摘要: 1.CSS控制页面文字不能复制: body{-webkit-user-select:none;} 2.【php过滤汉字和非汉字】 $sc="aaad....##--__i汉字过滤"; //iconv("UTF-8","GB2312",$sc);utf-8转码 echo $temp=eregi_rep 阅读全文
posted @ 2016-10-28 18:28 浮尘微光 阅读(279) 评论(0) 推荐(0)
摘要: #IncludeOptional "D:/wamp/vhosts/*" Include "D:/wamp/alias/*" ####配置虚拟主机 NameVirtualHost *:80 ServerName localhost DocumentRoot "D:/www" Options Indexes FollowSymLinks AllowOve... 阅读全文
posted @ 2016-10-28 18:27 浮尘微光 阅读(235) 评论(0) 推荐(0)
摘要: '@'. dirname(__FILE__).'/img/1.jpg'); curl_setopt($ch,CURLOPT_URL,"http://localhost:8088/curl/get_img.php"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_POST,true); curl_set... 阅读全文
posted @ 2016-10-28 18:24 浮尘微光 阅读(848) 评论(0) 推荐(0)
摘要: 【原数组结构】 【转换后的数组】 《附加:上面的树形结构数组怎么来的?》 【代码截图】 【初始数据】 【select的结构】 【转换树形后的结构】 即:本文最上面的结构 阅读全文
posted @ 2016-10-28 18:22 浮尘微光 阅读(1457) 评论(0) 推荐(0)
摘要: 【简单点】直接: strip_tags('xxxxxx'); <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php header('Content-Type: text/html; charset=ut 阅读全文
posted @ 2016-10-28 18:17 浮尘微光 阅读(727) 评论(0) 推荐(0)
摘要: "; # localhost //获取网页地址 echo $_SERVER['PHP_SELF'].""; # /blog/testurl.php //获取网址参数 echo $_SERVER["QUERY_STRING"].""; # id=5 //获取用户代理 echo $_SERVER['HTTP_REFERER'].""; //获取完整的url echo 'http:/... 阅读全文
posted @ 2016-10-28 18:16 浮尘微光 阅读(292) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-10-28 18:16 浮尘微光 阅读(3822) 评论(0) 推荐(0)
摘要: $file_size_max) { echo "对不起,你的文件容量大于规定 "; exit; } // 检查读写文件 if (file_exists($store_dir . $upload_file_name) && !$accept_overwrite) { echo " 存在相同文件名的文件 "; ... 阅读全文
posted @ 2016-10-28 18:16 浮尘微光 阅读(412) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 76 下一页