Hi,
I noticed your code is using $SERVER['DOCUMENT_ROOT']. This may cause the code to malfunction when run from the command line, as is the case in cron jobs, for example. Are there any plans to replace the code with DIR and dirname()?
Thanks,
Steve Nagy