RE: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Daevid Vincent
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Thursday, November 11, 2010 1:09 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] parse_ini_file() seems to be broken in PHP > 5.2.4-2ubuntu5.12 >

Re: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Thijs Lensselink
On Wed, 10 Nov 2010 18:08:01 -0800, "Daevid Vincent" wrote: http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1

Re: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Tamara Temple
On Nov 10, 2010, at 8:08 PM, Daevid Vincent wrote: http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1" !!!

[PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-10 Thread Daevid Vincent
http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1" !!! WTF good does that do me?! Here is my test.ini file: -

Re: [PHP] parse_ini_file problem [SOLVED]

2009-08-27 Thread Richard H Lee
Hi Jim, Cheers for the reply. I had to swap the quotes around to get it running on the windows command line. This from the 5.3.0 machine that does not parse: C:\wamp\www\digishop\install\lang>C:\wamp\bin\php\php5.3.0\php -r "print_r(parse_ini_file('1-ISO-8859-1.ini.php'));" PHP War

Re: [PHP] parse_ini_file problem

2009-08-27 Thread Stuart
2009/8/26 Richard H Lee : > Hi all, > > I think I'm having a problem with parse_ini_file in php. I am using wamp on > two machines. I'm installing a Digishop e-commerce package. > > The blah.ini.php file starts with > > > > > > [SOMETITLE] > some_setting="Ok, I Have Completed This

Re: [PHP] parse_ini_file problem

2009-08-26 Thread Jim Lucas
Richard H Lee wrote: > Hi all, > > I think I'm having a problem with parse_ini_file in php. I am using wamp > on two machines. I'm installing a Digishop e-commerce package. > > The blah.ini.php file starts with > > > > > > [SOMETITLE] > some_setting="Ok, I Have Completed This

[PHP] parse_ini_file problem

2009-08-26 Thread Richard H Lee
Hi all, I think I'm having a problem with parse_ini_file in php. I am using wamp on two machines. I'm installing a Digishop e-commerce package. The blah.ini.php file starts with [SOMETITLE] some_setting="Ok, I Have Completed This Step" another_setting="Next" .. .. .. -

Re: [PHP] parse_ini_file problem

2004-08-27 Thread Ramil Sagum
On Fri, 27 Aug 2004 12:54:14 +0300, Vladimir <[EMAIL PROTECTED]> wrote: > Hello folks! > > I have an ini file that looks like this: > index.rent=Rent > index.faq=FAQ > index.contact=Contact > index.links=Links > > then I want to read this file: > $english_messages = parse_ini_file('conf/english.i

[PHP] parse_ini_file problem

2004-08-27 Thread Vladimir
Hello folks! I have an ini file that looks like this: index.rent=Rent index.faq=FAQ index.contact=Contact index.links=Links then I want to read this file: $english_messages = parse_ini_file('conf/english.ini'); print_r($english_messages); What I see is: Array ( [index.rent] => Rent ) And that's

Re: [PHP] parse_ini_file VS. constructor with many parameters

2004-07-07 Thread Jason Barnett
John W. Holmes wrote: I'd prefer the text file. It's easier to open that and change values plus they don't have to worry about PHP syntax as much. Haven't tried, but you should be able to import them as private variables for your class... Thanks for the advice John. OK, so extending this a bit

Re: [PHP] parse_ini_file

2004-07-07 Thread Jason Barnett
I'd prefer the text file. It's easier to open that and change values plus they don't have to worry about PHP syntax as much. Haven't tried, but you should be able to import them as private variables for your class... Thanks for the advice John. OK, so extending this a bit: would it be better

Re: [PHP] parse_ini_file VS. constructor with many parameters

2004-07-06 Thread John W. Holmes
Jason Barnett wrote: I have a class definition that has a lot of private properties. These properties don't need to change often, in fact a user could probably just change the values once and forget about most of them. So this makes me think that I should use parse_ini_file and a configuration

[PHP] parse_ini_file VS. constructor with many parameters

2004-07-06 Thread Jason Barnett
I have a class definition that has a lot of private properties. These properties don't need to change often, in fact a user could probably just change the values once and forget about most of them. So this makes me think that I should use parse_ini_file and a configuration file to let users "

[PHP] parse_ini_file() difference between empty value and Off?

2003-08-19 Thread Ivo Fokkema
Hi list! I tried the manual, the web, the archives... maybe I'm not approaching this correctly. I use parse_ini_file() on a config.ini to fetch some settings the lame people can set using my application. I want this config file to be as simple as possible so that I won't get emails about things n