Quote:
Originally Posted by hankster
OK, I figured out how to wipe the wall via a cron job. Follow these instructions.
Wipe the wall via your browser. FTP into your site and take the graffiti.png file that was generated on your site and transfer it to your hard drive.
Rename this file something else, like graffitiorg.png and then transfer it back to your web site in the same folder as graffiti.png
Now create a cron job at whatever timetable you choose (I've set it up to do it once per week) with the following command:
cp /full/server/path/to/graffitiorg.png /full/server/path/to/graffiti.png
That's it! Whenever your cron job runs, it will copy the graffitiorg.png file over the existing graffiti.png file effectively wiping the wall.
Note: If you are also recording IP addresses you will also have to copy over your IP address file with a blank file to wipe it also.
I know, it may not be the best way to do it but it works.
|
that's quite ingenius! very OTB. (outside-the-box).