Error message:
Warning:require_once (Abc.class.php) [Function.require-once]: failed to open stream:no such file or directory in D:\myphp Www\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 file: Introducing Abc.class.php Files
Require_once ' Abc.class.php ';
Abc.class.php file:
Class abc{
Receive a number and print the pyramid
Public Function Printstar ($n) {
for ($i =1; $i <= $n; $i + +) {
Print Space first
for ($k =1; $k <= $n-$i; $k + +) {
echo "";
Print the number of asterisks
}
for ($j =1; $j <= ($i-1) *2+1; $j + +) {
echo "*";
}
Echo
";
}
}
}
?>
Online said (1) cannot find the file, is the path error, but the reference path is not wrong Ah,
(2) said to be a folder permissions problem, but the D disk folder all gave, modified.
Hope that the great God is not generous to enlighten you.
Reply to discussion (solution)
But I don't see the print.php file in the map.
Print.php? Abc.class.php want to put the same eye again?
But I don't see the print.php file in the map.
Well, in a piece of, hehe.
Print.php? Abc.class.php want to put the same eye again?
Well, sorry, in a piece, there is a small system, others computer good, on my computer also prompted this error.
Your name?? The
The cut is Abc.calss.php.
And your include is the
Abc.class.php
Well, I was wrong. Check out for half a day, and thought it was a configuration problem.
Your name?? The
The cut is Abc.calss.php.
And your include is the
Abc.class.php
Well, I was wrong. Check out the night did not check out, I thought it was a configuration problem. It's a great God to bother you.
Such as?? The solution????。
Such as?? The solution????。
Thank you, great God!