Kod
$licz=0;
if ($handle = opendir('foty/'))
{
echo "Directory handle: $handle\n";
echo "Files:\n";
/* This is the correct way to loop over the directory. */
while (($file = readdir($handle))!=false)
{
$licz++;
//echo "$file\n";
echo"<img src='+$file+'/>";
}
}
echo $licz;
closedir($handle);
if ($handle = opendir('foty/'))
{
echo "Directory handle: $handle\n";
echo "Files:\n";
/* This is the correct way to loop over the directory. */
while (($file = readdir($handle))!=false)
{
$licz++;
//echo "$file\n";
echo"<img src='+$file+'/>";
}
}
echo $licz;
closedir($handle);
Dlaczego nie wyświetla mi obrazków z podanego katalogu?