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!