[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Where to put PHP database connection info file on RaQ3?
- Subject: Re: [cobalt-users] Where to put PHP database connection info file on RaQ3?
- From: Rik Thomas <rikt@xxxxxxxxxxxxxxxx>
- Date: Thu Nov 1 12:04:14 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 1 Dec 2001, Graham Nichols wrote:
> Hi,
>
> I need to made a PHP file with database connection (user and password) info,
> and place it on a non web-accessible directory to be used as an 'include'
> file for the main code. Not sure how to pull this off properly, and, as you
> can see, I'm not too embarrassed to ask! If someone could help I'd be very
> grateful to them for filling in some of my ignorance gap (still a huge hole
> to fill :) )
>
> best, Graham
say the file name was connection.inc
and your site number was 12
cdup to /home/sites/site12 directory
do a 'mkdir includes'
then 'cd includes'
Then copy your file in to that directory so it's path would be
/home/sites/site12/includes/connection.inc
--
Rik Thomas
rikt@xxxxxxxxxxxxxxxx http://SmartBackups.com
Is your Website Smart? Automated Website backups. Free 30Day trial!
Ph: 888.845.6856 Fx: 302.672.7315 ICQ: 879956