> Hello!
>
> I am having trouble setting up an Alias for my PHP includes on a Raq3.
>
> If I put this line in my PHP code it works:
> <?php require('/home/sites/site1/includes/config.inc'); ?>
>
> But when I change my code to read:
> <?php require('/includes/config.inc'); ?>
>
> and add the following line to my Virtual Site in httpd.conf :
> Alias /includes/ /homes/sites/site1/includes/
>
> and then restart apache it does not work.
>
> "Fatal error: Failed opening required '/includes/config.inc'
> (include_path='.:/usr/local/lib/php') in
> /home/sites/site1/web/test.php on
> line 1"
Try this and see if it works:
require($DOCUMENT_ROOT . "/includes/config.inc")
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users