Page 1 of 1

How can I purge the cache folder outside phpBB?

Posted: Tue Apr 12, 2011 6:21 am
by candie111
I want to write a simple PHP script that will purge the cache of phpBB. It will be a script that only I access, don't worry about who can access it.

Basically I want to delete everything in the /forums/cache/ folder except for .htaccess and index.htm. How do I go about doing that in a script?