Simple HTML DOM parser
能解析不符合W3C标准的html文档。它使用了类似jQuery的元素选择器,通过元素的id,class,tag等等来查找定位;同时还提供添加、删除、修改文档树的功能。当然,这样一款强大的html Dom解析器也不是尽善尽美;在使用的过程中需要十分小心内存消耗的情况。不过,不要担心;本文中,笔者在最后会为各位介绍如何避免消耗过多的内存。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001745s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.075107s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000998s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001175s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000879s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.002981s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000817s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003720s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.013935s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001054s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 35505 [ RunTime:0.016658s ]