Windows ignores text inside of PHP files because it doesn’t recognize them. This makes it very difficult to search for specific words or phrases inside of PHP files.
If you have Windows Search Indexing disabled, view this solution. Otherwise continue with the steps below.
- Perform a search on the Start Menu for “indexing”. In the results, click on “Indexing Options”.
- With “Indexing Options” open, click on the “Advanced” button.
- Click on the “File Types” tab and scroll down the list until you see php in the Extension column.
- Click on php to select it, then select the radio button below that reads “Index Properties and File Contents”.
- Click OK. Click Close.
- Restart your computer.
Now when you perform a search for a word, you will be able to click “Search in File Contents” and it will search all the text inside of the PHP files and return results for your query. That’s all there is to it.