Pear Class Call problems

Source: Internet
Author: User
For pear class calling problems, use the default installation path of the class installed by pear. During calling, we find that require_once (xx) and xx do not exist in the specified directory, that is, the path is inconsistent, in this way, an error is reported when this class is called. why? Is it necessary to modify the call class path in the source code of the installed class? Or other reasons? ------ Solution ------- pear Class Call problems
The default installation path of the class installed with pear. during the call, it is found that require_once ('XX') and 'XX' in each class do not exist in the specified directory, that is, the path is inconsistent, in this way, an error is reported when this class is called. why? Is it necessary to modify the call class path in the source code of the installed class? Or other reasons?


------ Solution --------------------
When the include_path is not set in php. ini, the pear installation directory is included in the include_path
If you specify include_path and use pear, you should append the pear installation directory to include_path.

------ Solution --------------------
Then you can call the full path, such as require ("d: \ x \ xx \ 1.php ");
You can also see the results of echo dirname (_ file,
You can also use get_include_path to check which paths are currently included.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.