1. 調整php ini dll 順序, php_mbstring.dll 要在 php_exif.dll 前面;
原本extension_dir ="C:/AppServ\php\ext" 改成 extension_dir="C:\AppServ\php5\ext";
再次重新啟動 AppServ
2. 在執行輸入C:\AppServ\php5\go-pear.bat 按下 enter,之後會顯是很多文字,不用理他,一直按enter 下去。
3. 在 C:\AppServ\php5\pear 會看到很多檔案表示有安裝了,然後再找到C:\AppServ\php5\PEAR_ENV.reg 請雙點登錄檔完成安裝。
4. 測試,寫個CDDE :
<?php
require_once 'PEAR.php';
$error = new PEAR_Error('An error has occurred!', 100, PEAR_ERROR_RETURN);
print $error->toString() . "\n";
?>
會顯示 [pear_error: message="An error has occurred!" code=100 mode=return level=notice prefix="" info=""]
3. 在 C:\AppServ\php5\pear 會看到很多檔案表示有安裝了,然後再找到C:\AppServ\php5\PEAR_ENV.reg 請雙點登錄檔完成安裝。
4. 測試,寫個CDDE :
<?php
require_once 'PEAR.php';
$error = new PEAR_Error('An error has occurred!', 100, PEAR_ERROR_RETURN);
print $error->toString() . "\n";
?>
會顯示 [pear_error: message="An error has occurred!" code=100 mode=return level=notice prefix="" info=""]
沒有留言:
張貼留言