会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞熊入梦
技术宅改变人类
博客园
首页
新随笔
联系
订阅
管理
2013年11月6日
博客地址迁移
摘要: 博客地址迁移:http://c4fun.cn
阅读全文
posted @ 2013-11-06 15:15 Burn_E
阅读(185)
评论(0)
推荐(0)
2013年8月22日
PHP学习笔记15——错误与异常
摘要: 1 %s: %s in %s on line %d\n",39 $error_type, $error_message, $file, $line);40 41 if ($EXIT){42 //跳转到错误窗口43 //echo ''44 }45 }46 47 //3. 写错误日志48 /* 使用指定文件记录错误报告日志,应作如下配置49 * error_reporting = E_ALL50 * ...
阅读全文
posted @ 2013-08-22 16:32 Burn_E
阅读(308)
评论(0)
推荐(0)
PHP学习笔记14——图书管理系统
摘要: index.php 1 2 3 4 5 9 10 11 图书表管理12 13 添加图书14 图书列表15 搜索图书16 17 exec($sql);25 echo $stmt ? "添加图书成功" : "添加图书失败";26 } elseif ($_GET['action'] == 'update') {27 $sql = "UPDATE...
阅读全文
posted @ 2013-08-22 16:29 Burn_E
阅读(2368)
评论(1)
推荐(0)
2013年8月21日
PHP学习笔记13——SQL支持(mysql库与PDO)
摘要: 1 '; 26 echo mysql_get_client_info().""; 27 echo mysql_get_host_info().""; 28 echo mysql_get_proto_info().""; 29 echo mysql_get_server_info().""; 30 echo mysql_client_encoding().""; 31 echo mysql_stat().""; 32 } 33 mysql_query('set
阅读全文
posted @ 2013-08-21 10:58 Burn_E
阅读(619)
评论(0)
推荐(2)
2013年8月16日
PHP学习笔记12——日期处理
摘要: 1 "; 19 echo microtime(true).""; 20 echo time().""; 21 echo mktime(0,0,0,1,1,1970).""; 22 echo ""; 23 24 print_r(getdate()); echo ""; 25 print_r(getdate(mktime(10,31,50))); 26 echo ""; 27 28 echo date("Y-m-d H:i:s", time()).&
阅读全文
posted @ 2013-08-16 13:26 Burn_E
阅读(268)
评论(0)
推荐(0)
PHP学习笔记11——文件处理
摘要: 1 "; 12 echo "filetype:".filetype($filename).""; 13 echo "filesize:".filesize($filename).""; 14 echo "readable:";var_dump(is_readable($filename)); echo ""; 15 echo "writeable:";var_dump(is_writeable($filename)); echo "&q
阅读全文
posted @ 2013-08-16 13:22 Burn_E
阅读(385)
评论(0)
推荐(0)
PHP学习笔记10——GD图片处理
摘要: 1 "gif", 2=>"jpeg", 3=>"png"); 14 //组合创建图像函数名 15 $createfrom = "imagecreatefrom".$types{$type}; 16 $image = $createfrom($filename); 17 //对该图片进行操作 18 $image = $func($image, $width, $height, $type, $vars); 19 //组合输出图像函数名 20 $output = "image".$t..
阅读全文
posted @ 2013-08-16 13:10 Burn_E
阅读(437)
评论(0)
推荐(0)
PHP学习笔记09——GD生成验证码实例
摘要: vcode.class.php 1 width = $width;13 $this->height = $height;14 $this->codeNum = $codeNum;15 $number = floor($height * $width / 15);16 //计算干扰元素数量17 if ($number > 240 - $codeNum) 18 $this->disturbColorNum = 240 - $codeNum;19 ...
阅读全文
posted @ 2013-08-16 12:44 Burn_E
阅读(430)
评论(0)
推荐(0)
PHP学习笔记08——GD绘图基础
摘要: 1 绘制图像->输出图像->释放资源 5 */ 6 /* 创建图像 7 * imagecreate(int sx, int sy) 基于调色板的图像(256色) 8 * imagecreatetruecolor(int sx, int sy) 基于真彩色图像,不能用于gif图像 9 */ 10 $image = imagecreatetruecolor(800, 800); 11 /* 设置颜色 12 * imagecolo...
阅读全文
posted @ 2013-08-16 12:35 Burn_E
阅读(657)
评论(0)
推荐(0)
2013年7月31日
PHP学习笔记07——字符串和正则
摘要: 1 "; 5 6 //2. 常用字符串输出函数 7 /* echo 效率较高,输出多个字符串用逗号隔开 8 * print 效率较低,错误时会返回0 9 * die 输出后退出,如果是字符串,退出前输出,如果是0~254的整数,作为退出状态码 10 * printf 格式化输出 11 * sprintf 格式输出到字符串,返回字符串 12 */ 13 echo "I", " am", " echo", "...
阅读全文
posted @ 2013-07-31 22:58 Burn_E
阅读(492)
评论(0)
推荐(0)
下一页
公告