Re: Securing PHP code

From: Date: Mon, 30 Jun 2003 01:50:40 +0000
Subject: Re: Securing PHP code
Groups: php.general 
Request: Send a blank email to php-general+get-153350@lists.php.net to get a copy of this message
On 30 Jun 2003 at 10:25, - Edwin - wrote: > > [mysql_info} > > I think you meant [mysql_info]? (Check the closing bracket.) It is correct on the server. My fingers didn't type what my brain told them to for this email. > Notice that you need to do something like this: (based on your > example) > > <?php > > $INI = parse_ini_file("/home/revref/mysql.ini"); > print_r($INI); > > ?> This leads to the following output: Warning: Error parsing /mydirectory/mysql.ini on line 4 in Unknown on line 0 Array ( [host] => spore.org [uid] => myuserid [passwd] => mypassword) The error message still remains, though now the test confirms that mysql.ini is being parsed. > PS > Please check the difference between print_r() and echo() as well... Thanks for the tip. I have read the manual for both of these. Doug

« previous php.general (#153350) next »