Display messages in bootstrap file I have a file that I have bootstrapped and I am trying to print messages but I can't get it to work. Here is the code does anything look wrong (mysite was changed)?

&lt;?php
define('DRUPAL_ROOT', '/home/mysite/public_html');
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
?&gt;

&lt;html&gt;
&lt;body&gt;
 &lt;div class="description"&gt;             
  &lt;?php global $user;

     print "Welcome " . $user-&gt;name;
     drupal_set_message(t("Don't panic!"), 'warning');
     print $messages;
  ?&gt;
&lt;/div&gt;  
&lt;/body&gt;
&lt;/html&gt;
To get the list of the messages set with drupal_set_message(), you should call drupal_get_messages().

Drupal doesn't use any global $messages to store those messages. They are stored in $_SESSION['messages'], but you should really use drupal_get_messages().

drupal_get_messages() returns an array; this means you cannot simply use the following code.

$messages = drupal_get_messages();
print $messages;