Created
December 17, 2017 10:51
-
-
Save gunaevart/5d9951fb994e4f33743876096f684a8c to your computer and use it in GitHub Desktop.
scandir php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$list = scandir('data'); | |
foreach ($list as $item){ | |
} | |
if($item != '.' && $item != '..'){ | |
echo '<br>'; | |
echo '<a href="data/'.$item. '"> Перейти к файлу '.$item.'</a>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment