Re: Save PHP3 output as file?

From: Date: Wed, 14 Jun 2000 05:23:53 +0000
Subject: Re: Save PHP3 output as file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1812@lists.php.net to get a copy of this message
> For a Content Management System I want to have the possibility that the > webpages can be generated dynamically (via PHP) every time the site is > accessed or as static HTML pages. > The problem is: how do I save the parsed PHP3 pages, i.e. the output they > generate? > > So, e.g. my PHP script looks like this: > > <? phpinfo(); ?> > > Now I want to save the output as a simple HTML file - how is this possible? Compile the CGI version of PHP and just do: php -q filename.php > filename.html -Rasmus

« previous php.general (#1812) next »