For pear Class Call problems, use the default installation path of the class installed by pear. during the call, we find that require_once ('XX') and 'XX' in each class do not exist in the specified directory, that is, the paths are 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? 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.
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.