Drupal is a content management system. Any piece of content (node) is stored in the database, because it is created by someone who has certain permission, created on a certain date, can have comments, votes, points, ...etc. Can be organized in taxonomy, book, and the like.<br>
<br>You are better off converting the .php file that you talk about into a Drupal module (.info and .module at a minimum), and having a hook_menu for it to be called as a path, so instead of <a href="http://example.com/something.php">example.com/something.php</a>, it would only be <a href="http://example.com/something">example.com/something</a>.<br>
<br>If you insist on having external PHP, it is best to bootstrap Drupal in them and then use Drupal's API normally afterwards, so something.php will be like:<br><br><?php<br>require_once './includes/bootstrap.inc';<br>
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);<br><br>// your code here<br>?><br><br>Having said that, if you have more than a few of these, or worse, you plan to have a lot of HTML markup in them, then you are doing something wrong, and not using Drupal correctly. <br>
<br><div class="gmail_quote">On Fri, Jul 31, 2009 at 1:49 AM, Ankur Jain <span dir="ltr"><<a href="mailto:ankur.khicha@gmail.com">ankur.khicha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi , <br> I am new to drupal and i want to create new page like abc.php but i don't want to create this page from admin section create content -> page / story ... bco'z it save the page into database ... i want to create new php page by my own and then let say call this from one of the menu item ( on click of the menu ) .. how can i do that ... <br>
and also wanted to know why drupal is saving all the page in database ... is for some optimization or achieve some functionality. <br><font color="#888888"><br><br>ankur <br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>