Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$path_pic='up_pic/';
$dir=opendir($path_pic);
$count=0;
while (($files=readdir($dir))!=FALSE) {
if (!is_dir($path_pic.$files)) {
if ($files!='.' and $files!='..' and $files!='index.php') {
$count++;
$path_to_pic[]=$path_pic.$files;
$path_to_tumb[]=$path_pic.'tumb_pic/tumb_'.$files;
}
}
}
closedir($dir)
<?php
$obsht_broi=count($path_to_pic);
$limit=10;
if ($obsht_broi<$limit) {
$limit=$obsht_broi;
} else {
$pokaji_do=$obsht_broi-$limit;
}
for ($key=$obsht_broi;$key>$pokaji_do;$key=$key-1) {
?>
<div id="snimka">
<a href="<?php echo $path_to_pic[$key-1];?>" target="_blanc">
<?php echo $path_to_pic[$key-1];?>
<img style="border:0px; "src="<?php echo $path_to_tumb[$key-1];?>" alt="IMAGE.JPG"/>
<div>
<?php echo $key;?>
</div>
</a>
</div>
<?php
}
?>