Re: Save PHP3 output as file?

From: Date: Fri, 16 Jun 2000 00:04:57 +0000
Subject: Re: Save PHP3 output as file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2012@lists.php.net to get a copy of this message
In article <000701bfd5b5$2854b4a0$0164a8c0@server>, php@tricos.com ("PHP") wrote: > Hi! > > 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? If compiling PHP as a CGI is impossible for some reason, you could use wget or lynx -dump to get the URL, or even write another PHP page to surf to your first PHP page and fopen it and then write it out... The PHP CGI will be way faster, and far less resource-intensive though, so try to do that if at all possible. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2012) next »