How to access Drupal variables in a PHP included file?
You can access the $variables array in your included file like this:

 // assuming you are viewing a node
 $node = $variables['node'];
 // the node is an object, so to display the url do
 echo drupal_get_path_alias('node/'.$node-&gt;nid);


To see what kind of data the $variables array contains do something like:

 echo '&lt;pre&gt;';
 print_r($variables);
 echo '&lt;/pre&gt;';