摘要:
_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
阅读(385)
评论(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
阅读(218)
评论(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
阅读(152)
评论(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
阅读(159)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2011-10-10 12:04
Rayol
阅读(113)
评论(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
阅读(593)
评论(0)
推荐(0)
摘要:
\n";}else{ echo "ok\n";}?> 阅读全文
posted @ 2011-10-10 10:57
Rayol
阅读(399)
评论(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
阅读(252)
评论(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
阅读(271)
评论(0)
推荐(0)
摘要:
array('header'=>"Referer: $refer")); //请求头部数组$context=stream_context_create($opt); //创建一个发送上下文头部信息文本$jsonUrl ="http://city.qq.com/json.php?mod=search&act=page&callback=showSrchResult&jsontype=str&per... 阅读全文
posted @ 2011-10-10 10:54
Rayol
阅读(260)
评论(0)
推荐(0)

浙公网安备 33010602011771号