Hi. I have three simple PHP document management pages (create.php, upload.php and display.php). Each page calls an additional PHP page and share include files for opening and closing the SQL database that stores the documents. How can I port this into a drupal module (I am a drupal novice that has just read the module development tutorial). I would just have the Drupal page point to the PHP pages, however I'd like to integrate it as a module in Drupal to leverage Drupal's Security.
1) How will the module page call the include files or other "library files"....where will they reside in my Drupal file structure?
2) Should I just merge all the pages together into the module code as functions? (an include file could be ported to a function with global scope?)
3) Would it just be easier to keep the pages outside of drupal?
4) Could I keep the Drupal user logged in and then redirect them back when they are done accessing the mysql document database?
Any direction, previous posts, links or suggestions would be greatly appreciated!!!!
Comments
Porting php web pages w/mysql interface into a Drupal module
I have the same question. I am a newbie and would like to know how to do this. I read the module development handbook and I have tried to do it by creating a new module. Any other way? Thanks thanks.