Re: saving text in file

From: Date: Wed, 29 Nov 2000 03:52:44 +0000
Subject: Re: saving text in file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27764@lists.php.net to get a copy of this message
Even better... disable the magic_quotes_* settings in php.ini/httpd.conf So far I haven't found a reason to have those options on... I rather use addslashes() in the few cases I need to that using stripslashes() on almost every string I touch. Regards, Sebastian "Deepak Chawla" <dchawla@DeveloperLAB.unl.edu> wrote in message news:Pine.LNX.4.21.0011281928570.15181-100000@DeveloperLAB.unl.edu... > Hi! > I have a text box in a form, the contents of which i'm saving in a file > using php. > The problem is that " are saved as \" > I'm saving it as follows. > > for($i=0;isset($text[$i]);$i++) > fputs($fp,$text[$i],strlen($text[$i])); > fclose($fp); > > Is there a way i can avoid the backslashes... or do i have to remove them > myself ? > > Thanks > -deepak > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27764) next »