Re: saving text in file

From: Date: Wed, 29 Nov 2000 01:42:06 +0000
Subject: Re: saving text in file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27744@lists.php.net to get a copy of this message
Use stripslashes() before putting it into the file. --Joe On Tue, Nov 28, 2000 at 07:33:15PM -0600, Deepak Chawla wrote: > 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 ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ Need a programmer? http://www.google.com/search?q=joe+stump+resume

« previous php.general (#27744) next »