<?php

$excluded_files = ['mytxtfiles/passwords.txt', 'mytxtfiles/mysecrets.txt'];
$files_in_dir = glob('mytxtfiles/*.txt');
$included_files = array_diff($files_in_dir, $excluded_files);

$selected_file = $included_files[array_rand($included_files)];

echo $selected_file;

?>