title: php scandir for given $q search query
body: <p>i have search values like &quot;search value&quot; (defined as $q) and .txt files called &quot;search value.txt&quot; in /mydir/ directory. How can i scandir /mydir/ for the search value ($q) and put the found .txt file with php include command  into page? Or is it a better way to put $q value into php file_get_contents php code (i mean put them together like a txt filename like (q$.txt -  searchvalue.txt somehow) and pull the content of the .txt file into page? If yes, how? Thanks in advance.</p>