Re: Help changing code HELP!!!!!!!!!!!!!!!!!

From: Date: Fri, 20 Jun 2003 15:31:40 +0000
Subject: Re: Help changing code HELP!!!!!!!!!!!!!!!!!
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-20452@lists.php.net to get a copy of this message
i think this has to do with the value you set in $allow. in config.php you set it to "1" then in test.php you checked for the value "yes".... hence unexpected number value when it was looking for a char.... "Mark Clarkstone" <mark.clarkstone@ntlworld.com> wrote in message news:20030620121439.97531.qmail@pb1.pair.com... > this > > Parse error: parse error, unexpected T_LNUMBER in > c:\www\apache\htdocs\scripts\string\test.php on line 9 > > "Mark Clarkstone" <mark.clarkstone@ntlworld.com> wrote in message > news:20030620082843.61823.qmail@pb1.pair.com... > > Something about lumer? > > > > "Erythros" <erythros@erythros.d2g.com> wrote in message > > news:20030619145132.5632.qmail@pb1.pair.com... > > > what are the errors that you get? > > > > > > "Mark Clarkstone" <mark.clarkstone@ntlworld.com> wrote in message > > > news:20030619090332.27339.qmail@pb1.pair.com... > > > > Hey I need your help I want to change a part of the config.php file in > > my > > > > script which is > > > > > > > > $allow = "1"; // to allow comments 1 = yes 0 = no > > > > > > > > I'm trying to change it to $allow = "0"; using a other file I > > > > have > this > > > code > > > > but i get errors > > > > > > > > <? > > > > require("config.php"); > > > > $changeallow = substr_replace($allow, '0', 0); > > > > > > > > if ($configallow=="yes") { > > > > > > > > $data = "$allow = /"0/";"; > > > > $fp = fopen("config.php",'a'); > > > > $fw = fwrite($fp,$data); > > > > fclose($fp); > > > > } > > > > ?> > > > > > > > > If you have another code i could use please help me > > out!!!!!!!!!!!!!!!!!!! > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > >

« previous php.windows (#20452) next »