Create a local PEAR and read about creating a local PEAR. on some hosts, you may not have the permission to modify the system default to install pear, but want to install your own pear package. In this case, a simple method is also available: First, create a pear configuration file in your home. pearrc: $ pearconfig-create $ HOME. pearrc if everything goes well "> <LI
On some hosts, you may not have the permission to modify the system's default pear installation, but want to install your own pear package. In this case, there is also a simple way to achieve:
Create a pear configuration file under your home. pearrc:
$ Pear config-create $ HOME. pearrc
If everything goes well, proceed to the next step. otherwise, run the following command:
$ Pear config-set download_dir/home/(username)/tmp/pear/cache
$ Pear config-set cache_dir/home/(username)/tmp/pear/cache
$ Pear config-set temp_dir/home/(username)/tmp/pear/temp
Then you can start to install pear, which will be connected to the pear dependency file:
$ Pear install-o PEAR
After this step, pear has been installed. if you want to install other packages, then:
$ Pear install pear/PackageName
In this way, you have a customized pear package. to call these pear packages in your program, you need to thank you for writing some additional code. after all, these codes are not in your shortde_path.
Php4
PLAIN TEXT
CODE:
Ini_set (
'Include _ path ',
Ini_get ('include _ path'). PATH_SEPARATOR. "/home/(youruser)/pear/php"
);
Php5
PLAIN TEXT
CODE:
Set_include_path (
Get_include_path ().
PATH_SEPARATOR. '/home/(youruser)/pear/php'
);
Author: volcano was published on March 13, 2007 at am.
Copyright information: This information can be reproduced at will. during reprinting, you must mark the original source and author information of the article in the form of hyperlinks and this statement.
Permanent link-http://www.ooso.net/index.php/archives/327