為讓mysql達到最佳查詢效能,我將分頁查詢改為cursor查詢方式:select * from reply where reply_id > last_id limit 20 order by reply_id ASC;上面的last_id為本頁最後一條回複的reply_id,這樣就能實現“下一頁”的查詢了,但是“上一頁”如何?呢?我想過改變排列順序select * from reply where reply_id 這樣還要在url中添加一個參數,我想保持url路由為www.example.
我看到 如下的 nginx 日誌 . 求解這個是什麼問題 .... ?重啟下 php-fpm 就又能訪問了 . 但一會就又出現頁面空白問題 . 2015/06/30 11:25:22 [error] 29571#0: *8857 FastCGI sent in stderr: "PHP message: PHP Fatal error: Too many concurrent users, try again in 4 seconds. in Unknown on line 0"
項目以前一直是用windows寫的,上傳到windows sever 2008裡面也可以正常使用,但是最近打算用mac來開發,但是發現模板不能解析,在php用print_r輸出什麼都正常,但是用smarty輸出html模板則一直顯示空白頁面,也沒報錯。以前用windows也出現過這個情況,但是那是使用FTP工具把html檔案上傳到伺服器時由於網路原因失敗了才會這樣,這次html檔案是好好的,應該不是那個原因。也不是因為沒開啟php.ini裡的display_errors,因為它是開著的
windows server 2008系統 wampserverIntegration Environment 綁定網域名稱用的是這個方法:啟動wamp開打httpd.conf找到Include conf/extra/httpd-mpm.conf把前面的#號去掉。在找到D:wampbinapacheApache2.4.4confextra目錄下的httpd-vhosts.conf檔案裡面有案例。按照案例寫我們自己的ServerAdmin admin@xxx.comDocumentRoot "