There are PHP scripts that perform what you ask. And they are free. Good place to search is http://www.sourceforge.net and http://www.freshmeat.net
For the person who made meantion about "I cant believe people still pay for software", I know I was a little disheartened, but corporations arent really interested in free software, its the support they get. Even though free software you technically have a community to help you out with some software, the problem is, if the program fails usually the documentation has a disclaimer, which scares corporations away, where as if you pay for software, you get technical support, bug fixes, etc, etc(not in all cases though).
What it boils down to is, who gets the blame and how fast they can get it fixed. I tried writing php scripts for the company I used to work for, and they wouldnt allow it as it wasnt part of my job, and if I ever got let go, or quit, they would have to hire someone with the knowledge to do the fixes, updates, etc.
So if you think about it this way, for a corporation to pay 5,000 dollars for a piece of software, they get 3 yrs technical support, free updates, etc. So if something does go wrong, then the people at the company can always complain to the vendor. Where as open source, 90% of the time, you cant contact the author via phone to get the ball rolling on a fix.
Corporate Politics arent fun, believe me, its just one big blame fest if you ask me.