这个PHP分页其实不难,现在就开始看看核心思路吧. 我习惯从最底层开始看起. 1. 首先用LIMIT偏移QUERY的指针 /* * get hot post by current page * @param [int]startNumOfPPost, [int]numOfPostPerPage * @return [array]post */ function getHotPostByCurrectPage($startNumOfPPost, $numOfPostPerPage) { conso…
最近自学linux,看鸟哥的文章.提到了apache,所以在虚拟机redhat 5下安装了一把, 结合国内外文章写下快速可行的教程: ------------------------------------------------------------------------------- 系统版本: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.4 (Tikanga) 一 步骤概览:(摘自apache官…