Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Alan Gauld <[EMAIL PROTECTED]>: > > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > >> I think that I will use the open() and read() functions, thanks! I did >> think of that, but I wanted to know if there was a better wheel >> invented already. > > Another option is to use environment variable

Re: [Tutor] Including files for security.

2008-08-24 Thread Alan Gauld
"Dotan Cohen" <[EMAIL PROTECTED]> wrote I think that I will use the open() and read() functions, thanks! I did think of that, but I wanted to know if there was a better wheel invented already. Another option is to use environment variables to store them. These can be set when the server star

Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Kent Johnson <[EMAIL PROTECTED]>: > On Sun, Aug 24, 2008 at 12:08 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I have a specific file in the web tree that makes a database call. I >> am uncomfortable keeping the database username and password in the >> file. In PHP I usually put the data

Re: [Tutor] Including files for security.

2008-08-24 Thread Kent Johnson
On Sun, Aug 24, 2008 at 12:08 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I have a specific file in the web tree that makes a database call. I > am uncomfortable keeping the database username and password in the > file. In PHP I usually put the database connection data in a file > outside the web

[Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
I have a specific file in the web tree that makes a database call. I am uncomfortable keeping the database username and password in the file. In PHP I usually put the database connection data in a file outside the web tree and use the include (http://il.php.net/include/) function to get the data. I