>  $base_url = $base_root . $base_path;
>

And in addition to that, the base_path() function provides you with
the subdirectory name if that is all you are after.

If you have all the domains/subdomains in Apache's vhosts pointing
to the same directory/subdirectory, then all you need is the code in
template.php. The $base_url, including the subdirectory will all be
the same for all the domains/subdomains.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci

Reply via email to