> Reason I'm not using an include is simple. The file does not contain
any
> variables, it just has a line of text that is & delimited. I guess I
was
> just looking at the include() method as insecure. I can see how it
> wouldn't
> be now.
Why not create your .ini file in the same format as php
ks to everyone!
-Dan Joseph
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 3:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Opinion on a method
Hi Dan,
> the ini file looks like: hostip&user&password&databasename
> after
Hi Dan,
> the ini file looks like: hostip&user&password&databasename
> after I import it, I split it up, and assign each to a variable
> name. I also have it outside the doc root, and it gives a
> generic error msg for every error in the system.
Should do it - it's a bit of a long-winded route, t
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "Dan Joseph" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 12:19 PM
Subject: RE: [PHP] Opinion on a method
> Hi Dan,
>
> > I would like to g
:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Opinion on a method
Ahh, good thought. I also have it outside the web site
directory tree.
-Dan Joseph
-Original Message-
From: Bryan Lipscy [mailto:[EMAIL PROTECTED]
Sent: Friday
ated, or not).
Should this do it?
-Dan Joseph
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:20 PM
To: Dan Joseph; [EMAIL PROTECTED]
Subject: RE: [PHP] Opinion on a method
Hi Dan,
> I would like to get some opinions here on a m
> I would like to get some opinions here on a method I'm doing to grab
connect
> information for a mysql connection.
>
> Currently I am doing: $pinfo = fopen
("/director1/directory2/filename.ini",
> "r");
>
> I'm looking for a more secure method of doing this. Is XML a solution?
Is
> there somethi
Hi Dan,
> I would like to get some opinions here on a method I'm doing
> to grab connect information for a mysql connection. Currently
> I am doing:
> $pinfo = fopen ("/director1/directory2/filename.ini","r");
Does this filename.ini contain the code to connect to your database? If so,
I usually
Ahh, good thought. I also have it outside the web site directory tree.
-Dan Joseph
-Original Message-
From: Bryan Lipscy [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:14 PM
To: 'Dan Joseph'; [EMAIL PROTECTED]
Subject: RE: [PHP] Opinion on a method
this php
file..
-Original Message-
From: Dan Joseph [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Opinion on a method
Hi,
I would like to get some opinions here on a method I'm doing to grab
connect information
Hi,
I would like to get some opinions here on a method I'm doing to grab connect
information for a mysql connection.
Currently I am doing: $pinfo = fopen ("/director1/directory2/filename.ini",
"r");
I'm looking for a more secure method of doing this. Is XML a solution? Is
there something else?
11 matches
Mail list logo