xkf
Tue 30 August 2005, 07:29 pm GMT +0300
I have this code :
Can you help me make it work?
Code:
<?php
$dh=opendir('dir_name');
while(false !== ($file=readdir($dh) ) )
{
if( is_file($file) )
echo"file";
else
echo"dir!"
}
?>
$dh=opendir('dir_name');
while(false !== ($file=readdir($dh) ) )
{
if( is_file($file) )
echo"file";
else
echo"dir!"
}
?>
Can you help me make it work?