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