Hello Everyone, I am completely new to PHP. Other than doing some basic stuff with MySQL databases and getting familiar with the fundamentals, I don't know much more than that. I have recently been assigned a challenge from a friend. He uses something called DirectAdmin to perform nightly backups. He wants to tell DirectAdmin to perform a nightly backup, but to have it cron a script afterwards that looks at the directories in the backup directory (they're all stored in one directory) takes everything other than the two newest backups (backup directories are named with a date) and deletes them. If the directory doesn't match the date format of the other directories, he wants the script to skip it. If there is a problem with the script running, he wants to have it e-mail someone with the reason that it failed. Now, given my limited knowledge of PHP and my zero-knowledge of the Linux command line (I should have mentioned that this is on a Linux box), what exactly should I learn that would get me to my goal the fastest. I'm not looking for someone to write the script for me, obviously, but I don't know which topics I should be focusing on. Also, if anyone knows of a great tutorial (I didn't really see anything in the tutorials section of this site), that would be great too.