> -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
>
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
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" !!!
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:
-
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
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
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
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"
..
..
..
-
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
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
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
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
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
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 "
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
15 matches
Mail list logo