try associating the file with notepad instead
"DerrickE" <
[email protected]> wrote in message
I have a folder with 2 .php files in it. When I try to open it, it takes
about 2-30 secs to open it. My computer is locked until it opens. Actually
it happens to all of my folders with php files in them. No other file type or
folder is effected.
Welcome to the tedious world of "persistent handlers".
A "persistent handler" is code integrated into Windows Explorer that
fiddles with files of the type(s) that it handles, whenever these are
listed. Yes, you just want to list them without touching the
contents, but the handler digs right in there anyway.
There are three things wrong with this approach...
1) Exceeds risk boundary
Software should not go beyond the risk level the user initiates. Say
the user wants to find a known malware file to delete it, with NO
intention of running it. Here, the code goes ahead and handles the
contents of the file - which increases the exploitable risk surface
exposed to the content of that file. Do I have to spell that out?
2) Slows things down
For example, create a directory, and in that empty directory, create a
few .ZIP files packed with other files. See how long that directory
takes to display - because the persistent handler for .ZIP files is
busy picking through them to count the number of files inside.
3) Breaks on damaged files
Persistent handlers for media file types will search from one end of
the file to the other, if the metadata they seek is not where it's
expected to be (e.g. in a corrupted media file). That's really
tedious when you are dealing with 700M DivX movies, etc.
So, hunt down and beat to death whatever persistent handler is
grabbing .PHP files and "adding value" to listings thereof.
---------- ----- ---- --- -- - - - -
Gone to bloggery:
http://cquirke.blogspot.com