AW: [PHP] How to pipe a command output into another command
| From: | Sebastian Stadtlich | Date: | Wed, 21 Feb 2001 15:10:58 +0000 |
| Subject: | AW: [PHP] How to pipe a command output into another command | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40962@lists.php.net to get a copy of this message | ||
this one uses pipe....
$command=
find $verzeichnis. -iname $DateiPattern |sort -f;
$verzeichnisliste = explode ("\n",$command);
sebastian
-----Ursprungliche Nachricht-----
Von: Martin Kong [mailto:mkong@intisoft.com]
Gesendet: Mittwoch, 21. Februar 2001 15:45
An: php-general@lists.php.net
Betreff: [PHP] How to pipe a command output into another command
>From within PHP, I'm trying to execute an external command and pipe (|)
the result into another command, then capture the output. I've tried
everything, exec, system, passthru, popen and backtick, and still could
get it to work. Has anyone done it before? Is it possible with PHP?
Running PHP 4.0.1pl2 as a Apache module.
Thanks.
--
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