Re: How to e-mail THIS .php3 page?
| From: | Ashley M. Kirchner | Date: | Tue, 10 Oct 2000 00:14:57 +0000 |
| Subject: | Re: How to e-mail THIS .php3 page? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19266@lists.php.net to get a copy of this message | ||
Justin French wrote:
> > Can you tell me how to save the outputted HTML code from a php page?
> > I want to make a static site (to put on a CDrom) out of a MySQL backed
> > site.
>
> the hard way:
> visit each page on your site, view the page source (outputted HTML, no
> php), copy it, paste it, save the file.
>
> do this hundreds of times.
> do a search and replace for all .php3 extensions within the site and
> change them to .html files, and you'll have to use relative directories.
Wouldn't it be easier to use something like wget to fetch the pages?
Granted, you'd still have to change the extensions, but at least they won't
contain the actual db query codes in them.
AMK4
--
H | Hi, I'm currently out of my mind. Please leave a message. BEEEEP!
|____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ashley M. Kirchner <mailto:ashley@pcraft.com> .
303.442.6410 x130
Director of Internet Operations / SysAdmin . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe
Ave #6
.................. . . . . Boulder, CO 80303, USA