3
This could be a lot of work as XOOPS has not really been designed to work this way. When an XOOPS page is viewed, several files are included to load all kinds of things like database config info and session information, in addition to all kinds of stuff for building a page. Not sure it would work, but you could try including mainfile.php from your php file then access the mydownloads table(s) directly using the $xoopsDB database object. An easier solution is probably just hardcode in PHP a connection to your MySQL database, query the mydownloads table(s) and output the results.