Re: Re: SOBRE FICHERO

From: Date: Tue, 04 Jun 2002 07:10:04 +0000
Subject: Re: Re: SOBRE FICHERO
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-23398@lists.php.net to get a copy of this message
Gracias frak pero solo me escribe en el FILE el valor del primer campo o sea en valor de valor1 ----- Original Message ----- From: "Frank" <fesv@netexplora.com> To: <lista@phpes.com> Sent: Tuesday, June 04, 2002 2:00 PM Subject: [PHP-ES] Re: SOBRE FICHERO > ESCRIBIR FICHERO... > $array[0]) = $valor1; > $array[1]) = $valor2; > $array[2]) = $valor3; > > $p = fopen($filename,'w+'); > fwrite($p, implode("\t",$array); > fclose($p); > > LEER FICHERO.... > $p = fopen($filename,'r'); > $array=explode("\t",fgets($p,1000)); > fclose($p); > > > Frank.- > > > "Ing. Remisel Naranjo Dieguez" <remy@metunas.co.cu> escribió en el mensaje > news:001201c20b94$4ac33e50$eb1aa8c0@remy... > Amigos necesito iescribir un arreglo en un fichero. > Tengo esto > > $p = fopen($filename,'w+'); > fwrite($p, $array); > fclose($p); > > donde > $array[0]) = $valor1; > $array[1]) = $valor2; > $array[2]) = $valor3; > > a la Hora de escribir en el file me pone Array solamente y necesito escribir > los valores de ese array y que me lo escriba asi > > valor1 > valor2 > valor2 > > Espero ayuda > > remy > > > > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com >

« previous php.general.es (#23398) next »