求解Fatal error: Failed opening required 异常

WBOY
Release: 2016-06-13 12:02:10
Original
6822 people have browsed it

求解Fatal error: Failed opening required 错误!
错误提示:
    Warning: require_once(Abc.class.php) [function.require-once]: failed to open stream: No such file or directory in D:\myphpwww\Print.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'Abc.class.php' (include_path='.;C:\php6\pear') in D:\myphpwww\Print.php on line 3

Print.php 文件: //引入Abc.class.php文件
require_once 'Abc.class.php';

Abc.class.php文件:
        class Abc{
//接收一个数并打印金字塔
public function printStar($n){

for($i=1;$i //先打印空格
for($k=1;$k echo" ";
//打印星号的个数
}
for($j=1;$j echo"*";
}
echo"";
}
}
}

?>



网上都说(1)找不到文件,是路径错误,可是引用路径没有错误啊,
(2)说是文件夹权限问题,可是d盘文件夹全给了,修改的。
望各位大神不吝赐教。
------解决方案--------------------
但在贴图中并没有看到 Print.php 文件
------解决方案--------------------
Print.php 與 Abc.class.php要放再同一目錄。
------解决方案--------------------
你名字寫錯了
截圖的是Abc.calss.php
而你include的是
Abc.class.php

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!