hey guys apparently directory functions such as opendir, and scandir are not working on my host.
following is the code, its from php.net.
the output is keep on coming fail.
is there something wrong with my php settings or something else.
the page is,
http://worldofpakistan.net/try/write.php
<?php
$dir = "http://www.worldofpakistan.net/";
$dh = scandir($dir);
if($dh)
{
echo "success";
}
else
{
echo "fail";
}
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
sort($files);
print_r($files);
rsort($files);
print_r($files);
?>