Searching PHP files with Windows Search

I use the default search engine in Windows XP. It’s not great, but it works. It saves the hassle of deciding whether to use Google, Copernic or MSN and the overhead of having another program installed. It’s also more logical to use – I don’t need to open up my web browser to search the contents of my PHP files.

Windows Search, by default, does not allow you to search PHP. This is because PHP files are a unknown file type. I searched and found the solution.

  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.

16 thoughts on “Searching PHP files with Windows Search

  1. you rock.

    i wonder who’s the kickin brain-dead mamagüevo engineer that decided that setting would be off by default.

  2. Thanks – this was driving me crazy.

    I knew it had something to do with file type association as my co-worker had PHP files associated with Dreamweaver on his PC and I had no PHP application association.

    He could search PHP files, I couldn’t.

    Great tip – worked exactly as you stated.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>