View Single Post
Old 03-21-2006, 04:12 PM  
Tipsy
Confirmed User
 
Join Date: Jul 2001
Location: See sig
Posts: 6,989
A Quick PHP Question

Rather than wading through tutorials I thought someone here could probably give a quick answer. All I need is 4 or 5 lines of php code that checks a directory for a certain file and if present deletes it i.e.

check for file /directory/blah.exe
if blah.exe then delete blah.exe
end

It's for a very quick fix on a server with security issues until the various scripts are fully updated etc which will take 48 hours. To be honest it doesn't even need to be php as long as it can be run via cron.

Any help appreciated. Thanks in advance.
__________________
Ignorance is never bliss.
Tipsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote