Home > Backend Development > PHP Tutorial > xampp HTTP Request.php require_once 'PEAR.php'解决方案

xampp HTTP Request.php require_once 'PEAR.php'解决方案

WBOY
Release: 2016-06-13 10:37:09
Original
946 people have browsed it

xampp HTTP Request.php require_once 'PEAR.php'
本人刚学习php,用xampp构筑php环境。
请教一个问题,在php/PEAR/HTTP/ 目录下的Request.php,
里面有 require_once 'PEAR.php';
根据我个人理解 这种加载 PEAR.php 应该是加载当前目录下,也就是HTTP目录下的文件吧。
可是PEAR.php ,并不在这个目录下,在PEAR目录下。
求教一下,是我理解不正确还是存在其他的设置,如环境变量之类的,
恳请各位大侠不吝赐教。

------解决方案--------------------
你的理解是对的
使用 PEAR 的充分必要条件是将 PEAR目录 加入到 include_path 中

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template