Look into exec() or virtual().

If the script is run over the web, you can just do a
fopen("http://www.example.com/script.php";); and read the result. You can do
the same for any other script that's run through the web b/c you'll receive
it's parsed output, not the source.

---John Holmes...

----- Original Message -----
From: "Sandman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 2:58 PM
Subject: [PHP] parsing of SSI scripts.


> I have a perl script that outputs HTML data. How would I do to execute
that
> script from within a php-script and have it's output parsed by -apache-.
>
> I'm not talking about eval(), but rather have apache parse it to invoke
php
> for whatever code I output. Let's say the perl script outputs:
>
> <span class="a">The year is <? print date("Y"); ?></span>
>
> Now, if I use system() or shell_exec(), the output is just printed to the
> page and whatever php code there is is ignored.
>
> Is there ANY way to have the output parsed to make the above say "The year
> is 2002"?
>
> --
> Sandman[.net]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to