[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: "Carrie Bartkowiak" <ravencarrie@xxxxxxxx>
- Date: Sat Feb 10 21:40:58 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> JDH> If I put this line in my PHP code it works:
> JDH> <?php require('/home/sites/site1/includes/config.inc'); ?>
> JDH> But when I change my code to read:
> JDH> <?php require('/includes/config.inc'); ?>
>
> JDH> and add the following line to my Virtual Site in httpd.conf :
> JDH> Alias /includes/ /homes/sites/site1/includes/
Good lord!!!!!
Confucius say "Do not use an axe to remove a fly from a friend's
forehead"...
All you have to do is put an .htaccess file into your web directory that
says:
php_value include_path .:/home/sites/site1/includes
and then in your php file you just call the config file like so:
include "config.inc";
You don't have to compromise your Cobalt warranty and go into httpd.conf to
do such a simple thing.
Carrie Bartkowiak