Re: Creating an Entire .html page with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-01-29 at 20:15 +0530, Raman . wrote:

> you can use Apache mod rewrite to create html pages having all programing
> saved in .php pages. I have never tried generating .html pages with this but
> have successfully generated .htm pages..
> 
> Hope this works..
> 
> On Tue, Jan 26, 2010 at 6:30 AM, dealtek@xxxxxxxxx <dealtek@xxxxxxxxx>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@xxxxxxxxx
> > [db-10]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 


You still have to create .php pages, mod_rewrite just masks what the
user is requesting through their browser. You can set Apache to
parse .html pages as PHP, but I wouldn't recommend it, as any html pages
that don't contain PHP code still have to be parsed as if they did,
which is slower.

Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux