Wednesday, October 15, 2008

Searching Inside PHP Files in Windows XP

Here's how to search inside multiple PHP files, JavaScript files, and all types of files that contain codes for that matter. Windows XP, by default, ignores searching for text inside such files, but you can fix that using the following method from Microsoft:

"
To configure Windows XP to search all files no matter what the file type, obtain the latest service pack for Windows XP and then turn on the Index file types with unknown extensions option.

If you use this method, Windows XP searches all file types for the text that you specify. This can affect the performance of the search functionality. To do this:
1. Click Start, and then click Search (or point to Search, and then click For Files or Folders).
2. Click Change preferences, and then click With Indexing Service (for faster local searches).
3. Click Change Indexing Service Settings (Advanced). Note that you do not have to turn on the Index service.
4. On the toolbar, click Show/Hide Console Tree.
5. In the left pane, right-click Indexing Service on Local Machine, and then click Properties.
6. On the Generation tab, click to select the Index files with unknown extensions check box, and then click OK.
7. Close the Indexing Service console."

So that's it! Really useful. This just saved me a lot of trouble looking for a certain function when there were a lot of files and I didn't know where to start.

No comments: