May 17, 2005Previous : Internet Marketing in Bali Next : Happy and Proud
Filed under: PHP Stuff, Windows XP — Gede @ 8:50 pm Are you a php programmer? I loose code all the time, and the first thing I do when I have installed a fresh copy of Windows XP, is make Windows XP believe PHP files are searchable text files. In its standard configuration XP does not search within files it doesn’t know, like *.php files….
Use this little registry entry:
REGEDIT4
[HKEY_CLASSES_ROOT\.php]
@="txtfile"
"PerceivedType"="text"
"Content Type"="text/plain"
And Windows XP Explorer searches for those very important lost code snippets and text fragments in your local web server directory….
The same trick works for .htm and .html
You know what to do….
UPDATE
After some research it seems that the trick is add a persistanthandler to a file type…
Even Microsoft mentions this here:
Search word or phrase in a file
So, this registry entry would do the trick:
[HKEY_CLASSES_ROOT\.php\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.phps\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.php3\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
My guess is that it works for all text containing file types……….
5 Comments
Leave a comment
You must be logged in to post a comment.
|