摘要: 博客地址迁移:http://c4fun.cn 阅读全文
posted @ 2013-11-06 15:15 Burn_E 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2198) 评论(1) 推荐(0) 编辑
摘要: 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 阅读(604) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(459) 评论(0) 推荐(0) 编辑