Re: pass output of php scripts through command line program or cgi
| From: | Ray Hunter | Date: | Fri, 16 Jan 2004 23:48:39 +0000 |
| Subject: | Re: pass output of php scripts through command line program or cgi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174901@lists.php.net to get a copy of this message | ||
on the commandline you need to have the php executable on your
path...then run
php -f [filename]
so
php -f index.php
that will do it for you.
--
Ray
On Sat, 2004-01-17 at 05:44, Paul William wrote:
> Hi,
>
> I want to run the output of all the php scripts running on my apache
> server through a command line or CGI program. I do not want to modify
> any of the php scripts.Has anyone done this? Is this possible?
>
> For example (this is a stupid example and I am not using it for this):
>
> The output of "index.php" is:
>
> <html>
> ...
> </table>
> </body>
> </html>
>
> then that output is run through "addfooter" (a command line script)
> which results in:
>
> <html>
> ...
> </table>
> <br/><b>The footer is inserted here.</b>
> </body>
> </html>
>
> Then apache outputs the above html.
>
> Any ideas?
>
> Thanks
>
> Paul
>
>
>
> --
>
> .''`. Paul William
> : :' : Debian admin and user
>
. '`
> `- Debian - when you have better things to do than fixing a system