I forgot where I found this, but I was getting annoyed at my inability to bootstrap drupal without placing a file in the Drupal root, so, in the interests of sharing, here it is. If I remember the source of this code anytime soon, I will, of course, mention it. For those unfamiliar with this procedure, insert this code at the beginning of your drupal php scripts, change script.php and mysite.example.com to appropriate values, and you can you use the full glory of the Drupal API in your script and stick it wherever you like in your file structure.