RE: [PHP] saving text in file

From: Date: Wed, 29 Nov 2000 01:30:26 +0000
Subject: RE: [PHP] saving text in file
Groups: php.general 
Request: Send a blank email to php-general+get-27743@lists.php.net to get a copy of this message
stripslashes (strlen($text[$i])) -----Original Message----- From: Deepak Chawla [mailto:dchawla@DeveloperLAB.unl.edu] Sent: November 29, 2000 09:33 AM To: php-general@lists.php.net Subject: [PHP] saving text in file 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 (#27743) next »