Hi,

Thanks to everyone for the input.

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.

Thanks 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 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, though.

As Kevin said, why not just use include()? It'll be a lot easier and just as
safe :-)

Cheers
Jon


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to