上一页 1 ··· 10 11 12 13 14
摘要: class sqlHelper{ private $conn; private $host = 'localhost'; private $user = 'root'; private $pwd = 'root'; private $db; public function __construct($ 阅读全文
posted @ 2016-07-20 18:20 wanzij 阅读(357) 评论(0) 推荐(0)
摘要: 给定省市地区数组如下: $area = array( array('id'=>1,'name'=>'安徽','parent'=>'0'), array('id'=>2,'name'=>'海淀','parent'=>'7'), array('id'=>3,'name'=>'濉溪县','parent'= 阅读全文
posted @ 2016-07-20 16:54 wanzij 阅读(1252) 评论(0) 推荐(1)
摘要: 方法一代码: path = './a/b/c/d/e/f'; $path_arr = explode('/',$path);//得到数组array('.','a','b','c','d','e','f'); for($i=0;$i<count($path_arr);$i++){ static $di 阅读全文
posted @ 2016-07-20 00:57 wanzij 阅读(688) 评论(0) 推荐(0)
摘要: function deldir($path){ if(!is_dir($path)){ return false; } $dh = opendir($path); while(($file = readdir($dh)) !== false){ if($file != '.' && $file != 阅读全文
posted @ 2016-07-18 22:36 wanzij 阅读(732) 评论(0) 推荐(0)
摘要: 方法一: function mk_dir($path_arr,$root){ if(!empty($path_arr)){ static $path;//每次保存上次调用的值 $path .= '/'.$path_arr[0]; if(!is_dir($path)){ if( mkdir($root 阅读全文
posted @ 2016-07-18 22:29 wanzij 阅读(559) 评论(0) 推荐(0)
摘要: 页面样式代码: <!doctype html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/><title>dom-浮动的div</title><script src="id.js" typ 阅读全文
posted @ 2016-07-17 22:29 wanzij 阅读(552) 评论(0) 推荐(0)
摘要: 首先写一个小页面;页面需要一个div 这个div就是盒子,然后在div里在包含一个子div 这个子div就包含一张小球的图片 代码: <!doctype html> <html> <head><meta http-equiv="content-type" content="text/html;cha 阅读全文
posted @ 2016-07-17 21:56 wanzij 阅读(617) 评论(0) 推荐(0)
摘要: 第一点、对于apache + php + mysql 的版本的正确选择 问题:网上有些教学视频已经很早了,然后很多人照着来,完全和视频里讲的一样,但是结果就是搭建不成功。 出现问题原因:三件套的版本选择不正确,比如有的php版本里就没有对应的Apache模块(形如:php5apache2_2.dll 阅读全文
posted @ 2016-07-16 01:18 wanzij 阅读(1899) 评论(0) 推荐(0)
摘要: <html> <head> <title>js乌龟抓小鸡游戏 </title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <script type="text/javascript"> //响应用户的点击按 阅读全文
posted @ 2016-07-10 19:29 wanzij 阅读(443) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14
TOP