Show a PHP page in drupal 7 I have a php script that does some querying and book keeping of drupal tables. How can I run this php script directly from the url? The script uses drupal functions so I guess it should be aware of the API.

When I go to mysite.com/script.php I would like this file to run...

Is there any includes that I can add and then run the script so that it is drupal aware and at the same time, does not need to go through all the view/node/block etc? Basically I do not want to add this page as a PHP block data into one of the nodes, I would like to run in directly from the URL.
you should boot drupal on your file so that your file be aware of drupal functions,you can do this by :
YOUR_DRUPAL_ROOT= root of your drupal,here my drupal root was crawler.alexa.com. and 
require bootstrap.inc of your drupal.
and then boot drupal compeletly.
here is my example :

define('DRUPAL_ROOT', '../crawler.alexa.com');
require_once '../crawler.alexa.com/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);