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!