This is not very clear to me.
First, what errors do you get ?
Second, in one place you have

$changeallow (that you don't use)

and further ahead

$configallow (that is not initializazed)

Which one is the good one ?


Luis

----- Original Message -----
From: "erythros" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 3:51 PM
Subject: [PHP-WIN] Re: Help changing code HELP!!!!!!!!!!!!!!!!!


> what are the errors that you get?
>
> "Mark Clarkstone" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > 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
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to