in reply to An unfortunate incounter with PHP (loading php output into a perl variable)
Open3 is good, since is the more portable option to do that, and you have the write handler too to send data!use IPC::Open3 ; open3(LOGREAD , LOGERROR, LOGWRITE, "php -q /var/www/html/testing/he +ader.php"); @data = <LOGREAD> ; @error <LOGERROR> ; close(LOGREAD , LOGERROR, LOGWRITE) ; print join("", @data) ;
Graciliano M. P.
"The creativity is the expression of the liberty".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: An unfortunate incounter with PHP (loading php output into a perl variable)
by Bishma (Beadle) on May 01, 2003 at 05:20 UTC | |
by gmpassos (Priest) on May 01, 2003 at 07:45 UTC |