最新pear安裝

2021-08-31 10:32:55 字數 1138 閱讀 3193

最近想看看pear這一塊,網上查詢安裝的方面,很是讓人無語本人是windows,而且環境是整合的,都說用go-pear.php來安裝,用著安裝出現了

sorry! your php version is too new (5.2.13) for this go-pear.

instead use for a more stable and current

version of go-pear, more suited to your php version.

這裡提示資訊了用go-pear.phar來安裝。。

安裝pear

>php 你的php目錄/go-pear.phar

這裡按安裝提示資訊來安裝

這是目錄下的reg檔案

"php_pear_sysconf_dir"="d:\\www\\pear"

"php_pear_install_dir"="d:\\www\\pear\\pear"

"php_pear_doc_dir"="d:\\www\\pear\\docs"

"php_pear_bin_dir"="d:\\www\\pear"

"php_pear_data_dir"="d:\\www\\pear\\data"

"php_pear_php_bin"="c:\\program files\\myphp\\php5\\php.exe"

"php_pear_test_dir"="d:\\www\\pear\\tests"

我有點不懂這個,執行以後好像無法直接使用pear,還是按原來的方式新增到admin系統變數中

一些基礎命令:更多的檢視pear help命令

pear install package_name 安裝包

pear unsintall package_name 解除安裝包

例項使用file包輸出txt檔案中的內容

執行 pear install file

<?php

require_once("../pear/file/file.php"); // file.php的目錄

$file = "1.txt"; // 測試txt檔案

echo file::readall($file); // "this is my file_pear test ."

?>

安裝pear 安裝phpdocumentor

先說明一下.phpdocumentor這個軟體我很早以前就有了解過.那個時候是因為看到cakephp裡的文件裡面也是用這個軟體來生成api手冊的.當時只是有點好奇,了解了一下他們內容.但沒有實際去安裝這個軟體.因為還沒有覺得自己有這個需要,所以就沒有再了解下去了.最近我開始重新規劃我 的核心了.這個...

PHPUnit安裝(無需PEAR)

如何配置 配置開始前,首先設定一些符號 配置過程如下 2.解壓phpunit到機器任意目錄,個人建議解壓到 php home lib目錄下,這樣便於管理所有的第三方php庫。假設已經解壓後的 phpunit home設為 php home lib phpunit 3.4.10 3.修改 phpuni...

安裝pear及使用

解除安裝和重灌 首先講一下如何解除安裝,因為我覺得你看這篇文章的原因是沒有安裝成功,或者將要開始安裝。那麼先清理下失敗的垃圾。重新開始。1 如果是自定義安裝目錄的話解除安裝很簡單,把pear安裝的目錄全部刪除,把php安裝目錄下的pear.ini檔案也刪除。2 否則就要到php安裝目錄下把找到下面的...