Jump to content

error_log remove


jokerfool

Recommended Posts

Throughout my domain I have started seeing a collection of these annoying error_log files and if left over time they grow and before you know it, a few hundred meg.

 

Is there some sort of script that I can make that will scan the domain and remove the error_log files for me so I dont have to go hunting through a few thousand directories?

 

Thank you.

Link to comment
Share on other sites

Maybe you want to search and destroy the sources of the errors as well while you're at it.

 

For the scripting, check the user notes in the manual for dir(). There are sure to be lots of recursive folder scan routines there.  unlink() is what you need to remove files.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.