Hey there--
I have been using Drupal for only a few days and have already found it to be the simplest CMS I've come across. I'm moving my site over from a (failed) attempt at setting up a Joomla site, and so far everything has been so much simpler! However, I have one hitch:
I run an extensive reviews database using the database backend EZDatabase (a simple SQL database system). Now, they had a module for Joomla that stuck what they call the "Visitor File" (basically a non-admin interface to the database) right into Joomla. They don't have that for Drupal. However, they have very simple instructions to include the file in a web page:
<?
include “/home/ezdb/www/ezdatabase/cookie.php“;
?>
<html>
<head>
<title>My Database Page</title>
</head>
<body>
<h1>Welcome to My Database</h1>
<?
include “/home/ezdb/www/ezdatabase/index.php“;
?>
</body>
</html>While it's obvious to me that I can create a new page in Drupal and stick that include in the body, how should I go about sticking that include above the head?
I will preface this by saying that I'm fairly new to PHP (and obviously new to Drupal), but I'm learning fast.
Thanks so much!
Dan
Comments
inserting a web page with php into a drupal page
I'll take a crack at it though the Drupal guru's will have a more concise answer I'm sure! (I'm still fairly new.)
Try to "Create Content", of, as an example, "Page". Set the Input Format to PHP. Then paste in your code but without the Head ,Title, and Body tags. Set the title of the Page to the Title you want and... hopefully... it'll get you started... you might need the php in the tags though as below. Hmm... not much else there so I just pulled out everything but the includes...:
--------------------
Michael
http://michaelangela.name
thanks
Thanks for the help (and sorry for the delay in thanking you). Unfortunately, that code was doing weird things with my template. I decided just to wrap it in an iFrame for now. It's a bit of a kludge, but it'll work until I can start writing some straight SQL Queries and rebuild what I need as a flexinode.