Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $files = scandir('xml/');
- $file = shuffle($files);
- foreach($files as $file) {
- if (!isset($_GET['id']) and preg_match('/^article.*.xml$/i', $file)) {
- echo '
- <ul>
- <li>' . $file . '</li>
- </ul>';
- }
- }
Add Comment
Please, Sign In to add comment