Databases are the way to go, for sure. The original 3EProfiler, and prior non-public versions were perl scripts which used flat text files for storage. Talk about unweildly.
I don't think php has much over perl, but the move to mysql made things *alot* better as far as admin goes.