Re: Creating an Entire .html page with PHP
| From: | Ashley Sheridan | Date: | Tue, 26 Jan 2010 15:04:13 +0000 |
| Subject: | Re: Creating an Entire .html page with PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301477@lists.php.net to get a copy of this message | ||
On Tue, 2010-01-26 at 09:55 -0500, Ryan Sun wrote:
> Isn't there a framework doing that?
>
> On Mon, Jan 25, 2010 at 8:00 PM, dealtek@gmail.com <dealtek@gmail.com>wrote:
>
> > Hi Folks,
> >
> > I would like to create an entire .html page gathered from database content
> > mixed with html etc. and be able to save the page...
> >
> >
> > like:
> >
> > --- save all this pre made content as .html page....
> >
> > <html>
> > <head>
> > ... stuff
> > </head>
> > <body>
> > ... stuff
> > ... stuff with database query results...
> > ... stuff
> > </body>
> > </html>
> >
> > Q: Is there a function that might help with saving the whole content as
> > .html page?
> >
> >
> >
> > Thanks,
> > dealtek@gmail.com
> > [db-10]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
I think generally though, it's usual to have the pages created and
output on the fly, rather than output the .html page. Some CMS's do
publish the .html pages, but unless the page is created from very
complex content, or your site is expecting a large amount of traffic,
there's not much use to do it. I've heard people mention SEO as a
reason, but I've not seen any evidence, and there are ways via
mod_rewrite to mask the actual content pages.
Thanks,
Ash
http://www.ashleysheridan.co.uk