RE: [PHP] +++Pipe (fwd)

From: Date: Wed, 27 Sep 2000 05:49:43 +0000
Subject: RE: [PHP] +++Pipe (fwd)
Groups: php.general 
Request: Send a blank email to php-general+get-17727@lists.php.net to get a copy of this message
Should work, but you'll need php as an executable on the machine, and to have set execute permissions for that script. Should then be from stdio I would think. eg $filehandle= fopen ("php://stdin"); -----Original Message----- From: Yurais Fernandez Leal [mailto:yurais@medired.scu.sld.cu] Sent: September 23, 2000 03:38 AM To: PHP Mailing List Subject: [PHP] +++Pipe (fwd) Importance: High I think thi smessage never got the list... -- ------------------------------------------------ Yurais Fernández Leal, Systems Administrator Public Health Network Santiago de Cuba yurais@medired.scu.sld.cu http://www.scu.sld.cu/ Phone: (53) 226-54204 (home) (53) 226-51556 FAX: (53) 226-54204 ICQ: 33792610 ------------ ---------- Forwarded message ---------- To: PHP Mailing List <php-general@lists.php.net> Date: Thu, 21 Sep 2000 13:03:58 -0400 (CDT) From: Yurais Fernandez Leal <yurais@medired.scu.sld.cu> Subject: Pipe How can I pipe a file through PHP Example I have a text file, I want to add it to a field in a Database, but using a PHP Script through pipe cat file.txt|todb.php How would PHP get the information been piped ? I know it's easy to do in Perl, but I know nothing about Perl... -- ------------------------------------------------ Yurais Fernández Leal, Systems Administrator Public Health Network Santiago de Cuba yurais@medired.scu.sld.cu http://www.scu.sld.cu/ Phone: (53) 226-54204 (home) (53) 226-51556 FAX: (53) 226-54204 ICQ: 33792610 ------------ -- 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 (#17727) next »