PHP writing PHP. This is insanity! Or an awesome way to connect to your MySQL database and generate an API. You decide....