great i found something else i completely don't understand
Warning: opendir(): open_basedir restriction in effect. File(/usermade/) is not within the allowed path(s): (/home2/topdown/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/topdown/public_html/cleanup.php on line 7
Warning: opendir(/usermade/): failed to open dir: Operation not permitted in /home2/topdown/public_html/cleanup.php on line 7
fuck
Comes from this:
function scandir($dir, $no_dots=FALSE) {
$files = array();
$dh = opendir($dir);
if ($dh!=FALSE) {
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
if ($no_dots) {
while(($ix = array_search('.',$files)) > -1)
unset($files[$ix]);
while(($ix = array_search('..',$files)) > -1)
unset($files[$ix]);
}
sort($files);
}
echo "fuck";
return $files;
}
$dir = "/usermade/";
scandir($dir);
$x = 0;
while ($x < 7) {
echo $files[$x];
$x++;
}
Some wise words would be appreciated
Cheers,
Thierry