[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] How do I create an Alias on a Raq3?
- Subject: RE: [cobalt-users] How do I create an Alias on a Raq3?
- From: "John Parris" <lists@xxxxxxxxxxxxx>
- Date: Sat Feb 10 11:46:00 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> 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")