PhpFailedopeningrequired 'XXX. php' (include_path = '. C: \ php5 \ pear ')

Source: Internet
Author: User
PhpFailedopeningrequired 'XXX. php '(include_path = '.; c: \ php5 \ pear: Why is this problem occurring in PHP? I created a page in the admin folder to access a class file under the root directory. the code is functiongetHtml php Failed opening required' xxx. php '(include_path = '.; c: \ php5 \ pear'
This problem occurs during PHP,
I created a page in the admin folder,
Access a class file in the root directory.
The code is like this
Function getHtmls ()
{
Require_once '../newmanager. php ';
Require_once '../TheCompanysInsert/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 );
}
You can press ctrl to find the class when editing with Zend Studio.
The path is correct,
But when you run it
Warning: form: require_once (.. /newmanager. php) [function. form-require-once]: failed to open stream: No such file or directory in D: \ Apache2.2 \ htdocs \ phpcms_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
This error is prompted,
I can access this class in a directory of the same level,
However, this problem occurs after the path is changed ..
The eldest brother told me what caused this error. The younger brother thanked me first ..

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

To read this reply, log on to or register CSDN!


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

To read this reply, log on to or register CSDN!


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

To read this reply, log on to or register CSDN!


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

To read this reply, log on to or register CSDN!


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

To read this reply, log on to 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.