<?
$dir=scandir('/home/crusty/www/crusty.bshellz.pl/htdocs/404/');
foreach($dir as $file){
if($file!='.' && $file!='..' && $file!='index.php'){
$choice=$dir[rand(0, count($dir) - 1)];
include($choice);
}
}
?>
我有一个小代码的问题。当然它正在处理一些文件,但它仍然试图包含index.php,..和。 同一个人可以帮我解决吗?包括PHP的问题
警告:包括(/home/crusty/www/crusty.bshellz.pl/htdocs)[]:未能打开流:不适当ioctl for device in /home/crusty/www/crusty.bshellz.pl/htdocs/404/index.php on line 8 Warning:include()[function.include]:失败打开'/ home/crusty/www/'包含在/home/crusty/www/crusty.bshellz.pl/中的'crusty.bshellz.pl/htdocs/404/ ..'(include_path ='。:/ usr/share/php5:/ usr/share/php') htdocs/404/index.php上线8 所以它仍然不工作。 – crusty