Re: AW: [PHP] How to pipe a command output into another command
| From: | Martin Kong | Date: | Sat, 24 Feb 2001 08:00:48 +0000 |
| Subject: | Re: AW: [PHP] How to pipe a command output into another command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41473@lists.php.net to get a copy of this message | ||
Thanks! After upgrading to the latest PHP, it's working now.
Sebastian Stadtlich wrote:
>
> 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