[support] Drupal Install Directory

Victor Kane victorkane at gmail.com
Thu May 31 12:13:50 UTC 2007


In a module:

<?php
...
global $base_path;
...
?>

Also, the phptemplate theme engine exports the $base_path variable, to which
you have access in your template files (i.e. page.tpl.php).

Victor Kane
http://awebfactory.com.ar

On 5/31/07, Mitch Wander <Mitch at mytroops.com> wrote:
>
> What variables are available for use in my PHP code that indicate the
> directory in which directory Drupal is installed?
>
> Thank you.
>
> Mitch
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070531/ae3ab4e2/attachment.htm 


More information about the support mailing list