From: "Raman ." on 29 Jan 2010 09:45 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(a)gmail.com <dealtek(a)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(a)gmail.com > [db-10] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- http://www.kingzones.org/
From: Ashley Sheridan on 29 Jan 2010 09:48 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(a)gmail.com <dealtek(a)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(a)gmail.com > > [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
From: Robert Cummings on 29 Jan 2010 12:53 Ashley Sheridan wrote: > 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(a)gmail.com <dealtek(a)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(a)gmail.com >>> [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. You can also do the following: AddType application/x-httpd-php .php .html .htm And then rewrite is unnecessary. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP
From: clancy_1 on 29 Jan 2010 20:34 On Thu, 28 Jan 2010 13:39:31 -0800, mpeters(a)mac.com ("Michael A. Peters") wrote: >clancy_1(a)cybec.com.au wrote: >> On Thu, 28 Jan 2010 21:10:42 +0100, rene7705(a)gmail.com (Rene Veerman) wrote: >> >>> On Thu, Jan 28, 2010 at 12:31 AM, <clancy_1(a)cybec.com.au> wrote: >>>> On Wed, 27 Jan 2010 10:21:00 -0800, dealtek(a)gmail.com (dealtek) wrote: >>>> Opening tables, etc, wrongly generally messes the page up completely, but >>>> forgetting to close them again often has no affect no visible effect at all -- until you >>>> make some innocent change and everything goes haywire! >>> whenever i write an opening tag, i immediately write the closing tag >>> next, then cursor back to fill it in. >> >> Not so easy when you are using PHP to generate a complex layout! >> >> > >Use DOMDocument. >Then you don't have to worry about closing the tags ;) Ohhh? The index page of the manual has 110 lines of totally meaningless entries, and the introduction doesn't open. I haven't the faintest idea what it's all about, but I very much doubt if it would mean anything to the original writer.
From: Ashley Sheridan on 29 Jan 2010 20:33
On Sat, 2010-01-30 at 12:34 +1100, clancy_1(a)cybec.com.au wrote: > On Thu, 28 Jan 2010 13:39:31 -0800, mpeters(a)mac.com ("Michael A. Peters") wrote: > > >clancy_1(a)cybec.com.au wrote: > >> On Thu, 28 Jan 2010 21:10:42 +0100, rene7705(a)gmail.com (Rene Veerman) wrote: > >> > >>> On Thu, Jan 28, 2010 at 12:31 AM, <clancy_1(a)cybec.com.au> wrote: > >>>> On Wed, 27 Jan 2010 10:21:00 -0800, dealtek(a)gmail.com (dealtek) wrote: > >>>> Opening tables, etc, wrongly generally messes the page up completely, but > >>>> forgetting to close them again often has no affect no visible effect at all -- until you > >>>> make some innocent change and everything goes haywire! > >>> whenever i write an opening tag, i immediately write the closing tag > >>> next, then cursor back to fill it in. > >> > >> Not so easy when you are using PHP to generate a complex layout! > >> > >> > > > >Use DOMDocument. > >Then you don't have to worry about closing the tags ;) > > Ohhh? The index page of the manual has 110 lines of totally meaningless entries, and the > introduction doesn't open. I haven't the faintest idea what it's all about, but I very > much doubt if it would mean anything to the original writer. > > I've never used DomDoument to create an HTML page, and I probably never will. I also don't have much of a problem with creating decent html code that validates either. Thanks, Ash http://www.ashleysheridan.co.uk |