On Thu, 11 Jan 2001, Michael Orion Jackson wrote:

>       Well, if PHP is a standalone executable (i.e. the CGI version),
> then you could probably call it like any other system command in perl and
> catch the output that way (e.g:
>       open (IN, "/path/to/binary arguments |") or die ("$!\n");
>       while (<IN>) {
>               chomp $_;
>               # $_ containes each line of ouput in order, with no
>               # newline becuase of the chomp.
>       }
>
>       or
>
>       @output = `/path/to/binary arguments`;
>       foreach $line (@output) {
>               as above
>       }

I don't know if this is obvious or not, but if you use $arguments, instead
of of arguments, and $arguments is influenced by a CGI variable in any
way, be *very* careful if you use $arguments in the command-line.

Also, I suggest using the -T flag (Taint mode) if you are using Perl w/
Apache.

-- 
"In order to make an apple pie from scratch, you must first create the
universe."
                -- Carl Sagan, Cosmos

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to