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.
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 example.com/something.php, it would only be example.com/something.
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:
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// your code here
?>
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.
Hi ,
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 ...
and also wanted to know why drupal is saving all the page in database ... is for some optimization or achieve some functionality.
ankur