RE: [PHP] Opinion on a method....

From: Date: Fri, 04 Apr 2003 20:32:55 +0000
Subject: RE: [PHP] Opinion on a method....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142428@lists.php.net to get a copy of this message
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:jon@laughing-buddha.net] Sent: Friday, April 04, 2003 3:08 PM To: php-general@lists.php.net 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

« previous php.general (#142428) next »