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.