摘要:
<?php// time()echo "time(): ",time();echo "\n";// strtotime()echo "strtotime(): ",strtotime('1991-09-26');echo "\n";// date($format, $timestamp),forma... 阅读全文
posted @ 2015-10-10 11:36
根号五
阅读(381)
评论(0)
推荐(0)
摘要:
<?php /** // 一行一行读取一个文件 (文件内容很大的时候,适用。file_get_contents此场景就不太好) $re = fopen("index.php","r+"); while (!feof($re)){ $char = fgets($re);// fgets获取一行,fge 阅读全文
posted @ 2015-10-10 11:13
根号五
阅读(248)
评论(0)
推荐(0)
摘要:
架构图: 安装sphinx,见文章http://my.oschina.net/ptk/blog/495435 sphinx关键的配置文件。在里面写查询的sql。 两个关键命令:indexer生成查询索引。searchd是后台进程。命令要添加上这个配置文件的位置。 sphinx主要和两个服务打交道,一 阅读全文
posted @ 2015-10-10 10:04
根号五
阅读(214)
评论(0)
推荐(0)

浙公网安备 33010602011771号