Guest User

Untitled

a guest
Jan 17th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $files = scandir('xml/');
  2. $file = shuffle($files);
  3. foreach($files as $file) {
  4. if (!isset($_GET['id']) and preg_match('/^article.*.xml$/i', $file)) {
  5. echo '
  6. <ul>
  7. <li>' . $file . '</li>
  8. </ul>';
  9. }
  10. }
Add Comment
Please, Sign In to add comment