Along the same vein with Greek2Me's TCP library, is there some addon or function(s) that allows you to use PHP to connect to an SQLdatabase? Could you, for example, send a $_GET request to mysite.php/files?name= where you can pull a description of a file from the files page through defining "name" as something, such as mysite.php/files?name=monday ?