Re: [PHP] Creating an Entire .html page with PHP

2010-01-30 Thread Nisse Engström
On Fri, 29 Jan 2010 14:48:47 +, 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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-30 Thread Ashley Sheridan
On Sat, 2010-01-30 at 19:20 +0100, Nisse Engström wrote: On Fri, 29 Jan 2010 14:48:47 +, 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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-30 Thread Robert Cummings
Ashley Sheridan wrote: On Sat, 2010-01-30 at 19:20 +0100, Nisse Engström wrote: On Fri, 29 Jan 2010 14:48:47 +, 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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-30 Thread Ashley Sheridan
On Sat, 2010-01-30 at 13:40 -0500, Robert Cummings wrote: Ashley Sheridan wrote: On Sat, 2010-01-30 at 19:20 +0100, Nisse Engström wrote: On Fri, 29 Jan 2010 14:48:47 +, Ashley Sheridan wrote: On Fri, 2010-01-29 at 20:15 +0530, Raman . wrote: you can use Apache mod rewrite to

Re: [PHP] Creating an Entire .html page with PHP

2010-01-30 Thread Robert Cummings
Ashley Sheridan wrote: On Sat, 2010-01-30 at 13:40 -0500, Robert Cummings wrote: Ashley Sheridan wrote: On Sat, 2010-01-30 at 19:20 +0100, Nisse Engström wrote: On Fri, 29 Jan 2010 14:48:47 +, Ashley Sheridan wrote: On Fri, 2010-01-29 at 20:15 +0530, Raman . wrote: you can use

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Raman .
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, deal...@gmail.com deal...@gmail.comwrote: Hi Folks,

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Robert Cummings
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,

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread clancy_1
On Thu, 28 Jan 2010 13:39:31 -0800, mpet...@mac.com (Michael A. Peters) wrote: clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800,

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread Ashley Sheridan
On Sat, 2010-01-30 at 12:34 +1100, clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 13:39:31 -0800, mpet...@mac.com (Michael A. Peters) wrote: clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31

Re: [PHP] Creating an Entire .html page with PHP

2010-01-29 Thread clancy_1
On Thu, 28 Jan 2010 16:23:05 -0500, pa...@quillandmouse.com (Paul M Foster) wrote: On Fri, Jan 29, 2010 at 08:17:34AM +1100, clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Rene Veerman
On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread clancy_1
On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.com (dealtek) wrote: Opening tables, etc, wrongly generally messes the page up completely, but

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Paul M Foster
On Fri, Jan 29, 2010 at 08:17:34AM +1100, clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.com (dealtek) wrote: Opening

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Ashley Sheridan
On Thu, 2010-01-28 at 16:23 -0500, Paul M Foster wrote: On Fri, Jan 29, 2010 at 08:17:34AM +1100, clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Michael A. Peters
clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM, clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.com (dealtek) wrote: Opening tables, etc, wrongly generally messes the

Re: [PHP] Creating an Entire .html page with PHP

2010-01-28 Thread Rene Veerman
On Thu, Jan 28, 2010 at 10:17 PM, clanc...@cybec.com.au wrote: On Thu, 28 Jan 2010 21:10:42 +0100, rene7...@gmail.com (Rene Veerman) wrote: On Thu, Jan 28, 2010 at 12:31 AM,  clanc...@cybec.com.au wrote: On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.com (dealtek) wrote: Opening tables,

Re: [PHP] Creating an Entire .html page with PHP

2010-01-27 Thread dealtek
On 1/26/2010 6:08 PM, clanc...@cybec.com.au wrote: In principle this is extremely simple. Take your existing procedure to generate the page then: 1. $page = ''; 2. Replace every echo 'whatever'; statement with $page .= 'whatever';, and everyhtml with $page .= 'html'; 3.

Re: [PHP] Creating an Entire .html page with PHP

2010-01-27 Thread clancy_1
On Wed, 27 Jan 2010 10:21:00 -0800, deal...@gmail.com (dealtek) wrote: On 1/26/2010 6:08 PM, clanc...@cybec.com.au wrote: In principle this is extremely simple. Take your existing procedure to generate the page then: 1. $page = ''; 2. Replace every echo 'whatever'; statement with $page

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Ryan Sun
Isn't there a framework doing that? On Mon, Jan 25, 2010 at 8:00 PM, deal...@gmail.com deal...@gmail.comwrote: 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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Ashley Sheridan
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, deal...@gmail.com deal...@gmail.comwrote: Hi Folks, I would like to create an entire .html page gathered from database content mixed with html etc. and be able to

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Michael A. Peters
Ashley Sheridan wrote: I think generally though, it's usual to have the pages created and output on the fly, rather than output the .html page. Yes, though often using a cache if it is dynamic content that doesn't change often. No reason to hit the db continuously if the content is the

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread clancy_1
On Mon, 25 Jan 2010 18:31:54 -0800, deal...@gmail.com (deal...@gmail.com) wrote: On Jan 25, 2010, at 6:23 PM, Shawn McKenzie wrote: file_put_contents() is s much easier. Thanks Shawn I'll check that out ... - I see it says : This function is identical to calling fopen(), fwrite() and

RE: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Daevid Vincent
-Original Message- From: clanc...@cybec.com.au [mailto:clanc...@cybec.com.au] Sent: Tuesday, January 26, 2010 6:09 PM To: php-general@lists.php.net Subject: Re: [PHP] Creating an Entire .html page with PHP On Mon, 25 Jan 2010 18:31:54 -0800, deal...@gmail.com (deal

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread clancy_1
On Tue, 26 Jan 2010 18:52:06 -0800, dae...@daevid.com (Daevid Vincent) wrote: First of all writing pages in this old fashioned .cgi sort of way is so 1990's. Concatenating your whole page to a giant string is silly and defeats the benefits (and purpose) of using PHP. I'm actually in

Re: [PHP] Creating an Entire .html page with PHP

2010-01-25 Thread Ashley Sheridan
On Mon, 2010-01-25 at 17:00 -0800, deal...@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

Re: [PHP] Creating an Entire .html page with PHP

2010-01-25 Thread Angus Mann
- Original Message - From: deal...@gmail.com To: PHP-General php-general@lists.php.net Sent: Tuesday, January 26, 2010 11:00 AM Subject: [PHP] Creating an Entire .html page with PHP Hi Folks, I would like to create an entire .html page gathered from database content mixed with html

Re: [PHP] Creating an Entire .html page with PHP

2010-01-25 Thread deal...@gmail.com
On Jan 25, 2010, at 4:59 PM, Ashley Sheridan wrote: $fh = fopen(page.html,w); fwrite($fh, $htmlcode); Thanks so much Ashley and ALL, this looks like it will work fine. BTW: Sorry if I didn't make myself clear - I just wanted to grab some data like a person from a contacts file and be

Re: [PHP] Creating an Entire .html page with PHP

2010-01-25 Thread Shawn McKenzie
deal...@gmail.com wrote: On Jan 25, 2010, at 4:59 PM, Ashley Sheridan wrote: $fh = fopen(page.html,w); fwrite($fh, $htmlcode); Thanks so much Ashley and ALL, this looks like it will work fine. BTW: Sorry if I didn't make myself clear - I just wanted to grab some data like a

Re: [PHP] Creating an Entire .html page with PHP

2010-01-25 Thread deal...@gmail.com
On Jan 25, 2010, at 6:23 PM, Shawn McKenzie wrote: file_put_contents() is s much easier. Thanks Shawn I'll check that out ... - I see it says : This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file. my newbie brain likes that!