Re: parse_ini_file problem
| From: | Ralph Deffke | Date: | Thu, 27 Aug 2009 08:39:19 +0000 |
| Subject: | Re: parse_ini_file problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297340@lists.php.net to get a copy of this message | ||
Is it that some code, creating this error u talking about, is reading the
init file?
I would guess so, to me it looks like if u open the file dirctly the scrupt
is suppost to die. that seems like a little funny protection not no show the
init parameters.
if thats the case u got to send the code producing the error.
ralph_defke@yahoo.de
"Richard H Lee" <richard@webdezign.co.uk> wrote in message
news:BF.55.21292.3C8659A4@pb1.pair.com...
> 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
>
> ----------------
> <?php die ?>
>
>
> [SOMETITLE]
> some_setting="Ok, I Have Completed This Step"
> another_setting="Next"
> ..
> ..
> ..
> ----------------
>
> On one machine which uses php 5.2.5 it parses the file fine and installs
> properly
>
> But on another machine which use 5.3.0 i get the error
>
> Warning: parse error in blah.ini.php on line 1 in myparser.php on line 81
>
> On the 5.3.0 if I remove the <?php die ?> it works fine. But it still
> does not install the sofware properly.
>
> I get the feeling php on the 5.3.0 marchine is parsing the file
> differently to the 5.2.5. I doubt anything has changed between the
> versions. I also compared the phpinfos between the two setups but could
> not see anything outstanding.
>
> Have any of you guys seen this behaviour before?
>
> Cheers,
>
> Richard