RE: [PHP] +++Pipe (fwd) From: Lawrence.Sheed <email protected>
Date: 09/27/00

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 <email protected>]
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 <email protected>
                          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 <email protected>> Date: Thu, 21 Sep 2000 13:03:58 -0400 (CDT) From: Yurais Fernandez Leal <yurais <email protected>> 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 <email protected> 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 <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>