PHP will work for you. However, rather than storing data in text files, pair PHP with its natural partner, MySQL. Apache/PHP/MySQL is the magic combination. Good luck. Google will help you out, but try starting somewhere like here: http://www.freewebmasterhelp.com/tutorials/phpmysql