新版php 5 2 6安裝時注意事項

2021-04-18 18:01:37 字數 564 閱讀 8961

在configure php時,出現以下錯誤:

checking for mysql support… yes checking for specified location of the mysql unix socket… no checking for mysql unix socket location… no configure: error: cannot find libmysqlclient_r under /usr/local/mysql. note that the mysql client library is not bundled anymore!

那麼,你需要注意了,你可能在編譯apache的時候,使用–with-mpm模組,請在編譯mysql的時候加上 –enable-thread-safe-client.

這是php5.2的乙個改進,在php5.2.0之前的版本都不需要mysql啟用安全執行緒。 因此在安裝mysql時,configure應該是: ./configure prefix=/usr/local/mysql –with-extra-charsets=all –enable-thread-safe-client

php 安裝pdo注意事項

原文出自 原文方法問題 cd usr include php ext pdo mysql usr bin phpize configure with php config usr bin php config with pdo mysql usr local mysql mysql的安裝目錄 mak...

PHP 注意事項

1.arr array a b true in array c arr 返回true,儘管陣列裡並沒有 c 這一項。因為,c true。要想讓其返回正確的結果,應使用 in array c arr,true 2.bool 0 返回false bool 返回true 3.var 1 a var未必是陣...

PHP開發注意事項

1.使用內嵌的html 而不是php的echo語句。因為php是一門嵌入式web程式語言,可以將html 和php 相互嵌入。但是很多程式設計師擔心在html 中過多的使用 嵌入php 會多次呼叫php直譯器,從而降低了php 的執行速度,所以寧願使用php的echo語句來輸出html 而不直接使用...