PHP Failed opening required ' xxx.php ' (include_path= '). C:php5pear ' What's the situation, what to do with

Source: Internet
Author: User
PHP Failed opening required ' xxx.php ' (include_path= '.; C:\php5\pear ' What's the situation
There's a problem with PHP,
I built a page under the Admin folder,
Access a class file under the root directory.
The code is like this
function gethtmls ()
{
Require_once '. /newmanager.php ';
Require_once '. /thecompanysinsert/conn/conn.php ';
$sql = "SELECT * from phpcms_category WHERE module = ' YP '";
$rs = mysql_query ($sql);
$arr = Array ();
$i = 1;
while ($result = Mysql_fetch_array ($rs))
{
$category = new _category ();
$category->catid = $result ["catid"];
$category->module = $result ["module"];
$category->parentid = $result ["ParentID"];
$category->arrparentid = $result ["Arrparentid"];
$category->child = $result ["Child"];
$category->arrchildid = $result ["Arrchildid"];
$category->catname = $result ["CatName"];
$arr ["id$i"] = $category;
$i + +;
}
Return form::_gethtmls ($arr);
}
When I edit with Zend Studio, I can press CTRL to find the class.
Path is not wrong,
But when you run,
Warning:form::require_once (.. /newmanager.php) [Function.form-require-once]: failed to open stream:no such file or directory in D:\Apache2.2\htdocs\php cms_demo\include\form.class.php on line 488

Fatal error:form::require_once () [function.require]: Failed opening required '. /newmanager.php ' (include_path= '); C:\php5\pear ') in D:\Apache2.2\htdocs\phpcms_demo\include\form.class.php on line 488
You are prompted with this error,
I can access this class in the same directory as normal,
However, this problem occurs once you have changed the path after you access it:
The eldest brother told the error what caused the sum. The younger brother thanked here first.

------Solution--------------------

If you need to read this reply, please login or register csdn!


------Solution--------------------

If you need to read this reply, please login or register csdn!


------Solution--------------------

If you need to read this reply, please login or register csdn!


------Solution--------------------

If you need to read this reply, please login or register csdn!


------Solution--------------------

If you need to read this reply, please login or register csdn!

  • 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.