Welcome Guest, Not a member yet? Register   Sign In
Selectively delete cache helper (too easy?)
#2

[eluser]helmutbjorg[/eluser]
Seems ok to me... I would suggest putting a check to make sure the file exists before deleting it so you don't get any php warnings.

Change
Code:
unlink($server_path . $filename);

To
Code:
if(file_exists($server_path . $filename)) unlink($server_path . $filename);


Messages In This Thread
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 02:57 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 03:03 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 03:04 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 04:17 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 04:35 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 05:13 PM
Selectively delete cache helper (too easy?) - by El Forum - 01-12-2010, 05:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB