Pear, as a normalized and powerful Arsenal in PHP, has long been a concern, but has not been taken seriously in practical areas. The reason, there are incomplete documents, learning material is not sufficient, the code system is more complex, there is insufficient support for developers.
But sooner or later the Arsenal will be given enough attention. If you can start learning now, you may be able to take up a certain opportunity.
There is a support issue with pear in use. Many servers may use disable pear at compile time so that pear is not supported. Because its installation requires permission to modify the php.ini, the user may feel powerless on an unsupported host.
There is also a situation where the host server provides pear, and you can also see pear inclusions in phpinfo, but because the host is running in Safe mode, you cannot use it because the owner of pear is not you.
One way to do this is to install pear yourself on your shared host.
Your PHP is available in more than 4.04 versions as required by the pear documentation, but some of the modules require more than 4.05, which actually means the minimum requirement or 4.05 version. Of course, this is not a problem, because if your host is still in 4.06, you should consider changing the host.
Pear's own version of the choice of poetry needs to be considered in question. You may notice that all of the source packages for the PHP release contain pear, but in fact the latest version of Pear in the pre is completely incomplete. So my advice is to download 4.23 of the release package, unzip the contents of the Pear directory all uploaded to your home directory, the directory name remains pear.
If you are patient enough, you can download the latest 4.30pre2 version and use the Diff tool to do the comparison (I mean the Windows user.) To replace the old file with the new changes.
If you don't mind, you can go to the Pear directory in http://cvs.php.net to download the latest version of each file.
Using pear:
In the head of your program to join
Ini_set ("Include_path", "/absolute/path/to/pear");
This way you'll change the include_path directly to your pear directory.
The disadvantage of the above settings is that if you had any other included directories, it would be canceled. So you need to consider other existing include paths.
In the user comments in the PHP manual, it is suggested that you use:
Ini_set ("Include_path", Ini_get ("Include_path"). ":/path/to/pear");
Such a way.
I am not sure that this may be possible for you.
But at least my server doesn't support it, which can be problematic.
To me can only use:
A closer look at the gap between the two is the question of whether the pear path is the beginning or the last. (The colon is the delimited symbol of the path).
I think you may need to test two situations to see which one can be used.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service