RE: [PHP] saving text in file

From: Date: Wed, 29 Nov 2000 04:06:03 +0000
Subject: RE: [PHP] saving text in file
Groups: php.general 
Request: Send a blank email to php-general+get-27765@lists.php.net to get a copy of this message
when inputting into a file use stripslashes() I use it to write PHP files with PHP. Like for cloning navigations and dynamic lists which script parameters are depending on request. Cheers, Maxim Maletsky -----Original Message----- From: Sebastian Delmont [mailto:sdelmont@loquesea.com] Sent: Wednesday, November 29, 2000 12:53 PM To: php-general@lists.php.net Subject: Re: [PHP] saving text in file 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 > -- 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 (#27765) next »