Sorry, but what command line are you talking about? He didn't say he'd like to execute his PHP scripts from a shell prompt.
He said that he'd like the output of his PHP scripts to be filtered before httpd outputs them. > 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 > > -- > 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