上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 在Web设计中,常用的字体尺寸单位有:points(pt)、Pixes(px)、Ems(em)、百分比(%),下面这张表就是这些Web设计字体尺寸单位转换的一个速查表。可能由于字体、浏览器、操作系统的不同,这个转换表只能是一个近似值,但它还是很有参考价值。 PointsPixelsEmsPercent 6pt 8px 0.5em 50% 7pt 9px 0.55em 55% 7.5p... 阅读全文
posted @ 2011-10-11 12:04 Rayol 阅读(191) 评论(0) 推荐(0) 编辑
摘要: _yearCode[intval(date('Y')) - self::START_YEAR]. strtoupper(dechex(date('m'))) . date('d') . substr(time(), -5) . substr(microtime(), 2, 6) . sprintf('%02d', rand(0, 99)); }} 阅读全文
posted @ 2011-10-10 18:39 Rayol 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。 输入help可以看到基本操作命令: show dbs:显示数据库列表 show collections:显示当前数据库中的集合(类似关系数据库中的表) show users:显示用户 use :切换当前数据库,这和MS-SQL里面的意思一样 db.help():显示数据库操作命令,里面有很多的命令 db.f... 阅读全文
posted @ 2011-10-10 13:18 Rayol 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。 输入help可以看到基本操作命令: show dbs:显示数据库列表 show collections:显示当前数据库中的集合(类似关系数据库中的表) show users:显示用户 use :切换当前数据库,这和MS-SQL里面的意思一样 db.help():显示数据库操作命令,里面有很多的命令 db.f... 阅读全文
posted @ 2011-10-10 12:27 Rayol 阅读(144) 评论(0) 推荐(0) 编辑
摘要: ”;print_r ( SpendTime::$arrSpendTimes );echo “”;}static $arrStartTimes = array ();static $arrEndTimes = array ();static $arrSpendTimes = array ();}?> 使用方法,如计算出echo 的执行时间: SpendTime::Start(‘echo’); S... 阅读全文
posted @ 2011-10-10 12:07 Rayol 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-10-10 12:04 Rayol 阅读(109) 评论(0) 推荐(0) 编辑
摘要: php有三种方法可以post数据,分别为Curl、socket、file_get_contents: array(‘method’=>’POST’,‘header’=>’Content-type: application/x-www-form-urlencoded’.”\r\n”.‘User-Agent : Jimmy\’s POST Example beta’.”\r\n”.‘Content-... 阅读全文
posted @ 2011-10-10 12:03 Rayol 阅读(586) 评论(0) 推荐(0) 编辑
摘要: \n";}else{ echo "ok\n";}?> 阅读全文
posted @ 2011-10-10 10:57 Rayol 阅读(390) 评论(0) 推荐(0) 编辑
摘要: getSwfInfo($file); echo "文件的宽高是:".$flash["width"].":".$info["height"]; echo "文件版本是".$flash["version"]; echo "文件帧数量是".$flash["frameCount"]; echo "文件帧速率是".$flash["frameRate"]; echo "文件背景颜色是".$ 阅读全文
posted @ 2011-10-10 10:56 Rayol 阅读(242) 评论(0) 推荐(0) 编辑
摘要: selectDb("test_db"); * 创建索引 * $mongo->ensureIndex("test_table", array("id"=>1), array('unique'=>true)); * 获取表的记录 * $mongo->count("test_table"); * 插入记录 * $mongo->insert("test_table", array("id"=>2, "t... 阅读全文
posted @ 2011-10-10 10:55 Rayol 阅读(258) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页