Re: Lectura STDIN

From: Date: Thu, 03 May 2001 10:20:29 +0000
Subject: Re: Lectura STDIN
References: 1 2 3 4  Groups: php.general.es 
Request: Send a blank email to general-es+get-9568@lists.php.net to get a copy of this message
Bueno, me refiero a que cuando alguien manda informacion con un post, esto no deberia mostrarse tambien? ----- Original Message ----- From: "Juan Jose Sanchez Mesa" <juanjo.listas@doblej.net> To: <lista@phpes.com> Sent: Thursday, May 03, 2001 12:08 PM Subject: Re: [PHP-ES] Lectura STDIN > Que entiendes tu por "lo que te llega". > Explicate mas. > > At 12:04 03/05/2001, you wrote: > >Si, pero esto es lo que tengo en ese array. Y aqui no veo lo que me llega. > > > >Quiza ando algo perdido, pero no acabo de verlo claro. > > > >Gracias. > > > >Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 > >Accept-Language: ca > >Cache-Control: no-cache > >Connection: keep-alive > >Content-Length: 112 > >Content-type: application/x-www-form-urlencoded > >Host: www.dominio.net > >User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Win32) > >Via: 1.1 VA-C760-A_R2 (NetCache NetApp/5.0D6) > >X-Forwarded-For: 62.42.201.63 > > > > > > > >----- Original Message ----- > >From: "Antonio Salom" <asalom@wanadoo.es> > >To: <lista@phpes.com> > >Sent: Wednesday, May 02, 2001 9:30 PM > >Subject: Re: [PHP-ES] Lectura STDIN > > > > > > > Con Apache puedes usar: getalllheaders() que te devuelve un array con > >todas > > > las cabeceras. > > > > > > El Mié 02 May 2001 21:27, escribiste: > > > > Estoy realizando los nuevos desarollos en php, y me encontrado con un > > > > problema que no consigo solucionar. > > > > > > > > Para unas aplicaciones muy especificas, con perl leiamos la entrada > >STDIN, > > > > concretamente lo haciamos asi de facil: > > > > > > > > my @linies; > > > > @linies = <STDIN>; > > > > > > > > my $quantes = @linies; > > > > print $CAP; # $CAP és "Content-type: text/plain\n\n" > > > > print "S'han rebut $quantes línies\n"; > > > > open(SORT, ">../cartes/nombre.txt"); > > > > for($i=0; $i<@linies; $i++) > > > > { > > > > print SORT "$linies[$i]"; > > > > } > > > > close SORT; > > > > exit; > > > > } > > > > > > > > Esto simplemente devuelve por salida el numero de linias queha recibido > >y > > > > escribe en un fichero lo que ha recibido por STDIN. > > > > > > > > No he conseguido , tras leer el manual repetidas veces ( quiza no lo he > > > > entendido bien ) pues leer la entrada correctamente. > > > > > > > > Gracias. > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > Archivo On-line: http://www.phpes.com/ > > > > Manual PHP en español: ÎO畑ȷhŠ > > > > gd‰Fùhttp://www.php.net/manual/es/ > > > > Para dar de baja la suscripción, mande un mensaje a: > > > > lista-unsubscribe@phpes.com > > > > > > -- > > > Antonio Salom Palliser > > > > > > --------------------------------------------------------------------- > > > Archivo On-line: http://www.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 > > > > > > > > >--------------------------------------------------------------------- > >Archivo On-line: http://www.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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Juan José Sánchez Mesa ARCOMEDIA.com / info@arcomedia.com > Programador Pso. Independencia 14, Entlo. Izda. > e-mail: jsanchez@arcomedia.com 50004 Zaragoza (SPAIN) > ICQ#: 828937 Tlf.: (+34) 976 158 111 > -------------------------------------------------------------------------- -- > > > --------------------------------------------------------------------- > Archivo On-line: http://www.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 (#9568) next »