Click here to get back home

create html from flat file

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
create html from flat file lxyone@googlemail.com 06-05-2008
Get Chitika Premium
Posted by lxyone@googlemail.com on June 5, 2008, 9:20 am
Please log in for more thread options
Using a flat file containing table names, fields, values whats the
best way of creating html pages?

I want control over the html pages ie
1. layout
2. what data to show
3. what controls to show - text boxes, input boxes, buttons,
hyperlinks ie the usual.

The data is not obtained directly from a database.

I was thinking maybe the flat file could use xml. And maybe this flat
file could be generated using :
1. the database data and
2. a template file to indicate the controls that should appear on each
html page.

Maybe there could be existing html pages that could be used in the
generation of the required final html pages ie maybe they could
contain static data - such as layout, headings and tags as to where
fields, controls need to be placed.

Searching on this is difficult as the key words are too common :
create, html, xml, dynamic, template etc results in million+ hits.

Posted by Jerry Stuckle on June 5, 2008, 10:30 pm
Please log in for more thread options
lxyone@googlemail.com wrote:
> Using a flat file containing table names, fields, values whats the
> best way of creating html pages?
>
> I want control over the html pages ie
> 1. layout
> 2. what data to show
> 3. what controls to show - text boxes, input boxes, buttons,
> hyperlinks ie the usual.
>
> The data is not obtained directly from a database.
>
> I was thinking maybe the flat file could use xml. And maybe this flat
> file could be generated using :
> 1. the database data and
> 2. a template file to indicate the controls that should appear on each
> html page.
>
> Maybe there could be existing html pages that could be used in the
> generation of the required final html pages ie maybe they could
> contain static data - such as layout, headings and tags as to where
> fields, controls need to be placed.
>
> Searching on this is difficult as the key words are too common :
> create, html, xml, dynamic, template etc results in million+ hits.
>

If you're going to go to all that trouble, why not just create the html
page from the flat file and store it as a static page? Then when the
flat file changes, regenerate the html.

Much simpler (and server-friendly) than recreating the same page on
every request.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by lxy one on June 6, 2008, 3:23 am
Please log in for more thread options
> lxy...@googlemail.com wrote:
> > Using a flat file containing table names, fields, values whats the
> > best way of creating html pages?
>
> > I want control over the html pages ie
> > 1. layout
> > 2. what data to show
> > 3. what controls to show - text boxes, input boxes, buttons,
> > hyperlinks ie the usual.
>
> > The data is not obtained directly from a database.
>
> > I was thinking maybe the flat file could use xml. And maybe this flat
> > file could be generated using :
> > 1. the database data and
> > 2. a template file to indicate the controls that should appear on each
> > html page.
>
> > Maybe there could be existing html pages that could be used in the
> > generation of the required final html pages ie maybe they could
> > contain static data - such as layout, headings and tags as to where
> > fields, controls need to be placed.
>
> > Searching on this is difficult as the key words are too common :
> > create, html, xml, dynamic, template etc results in million+ hits.
>
> If you're going to go to all that trouble, why not just create the html
> page from the flat file and store it as a static page? Then when the
> flat file changes, regenerate the html.
>
> Much simpler (and server-friendly) than recreating the same page on
> every request.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Hi Jerry,

But thats exactly what I want to do.
1. Create a flat file that will contain
-a) tables/fields+data values
-b) web page(form) details ie the fields/controls to appear on each
web page.
2. Generate the (static) web pages from the flat file.
3. If flat file is updated then update web pages.

So the issues are :
1. flat file - what format should this be in - xml ?
2. How to generate the (static) web pages (forms) from the flat file
bearing in mind that I would like to control over what web pages +
tables/fields/data + controls are created.

But maybe this is to difficult. Maybe it would be easier to have the
static web pages I want already created. The pages could have tags to
indicate where fields + controls (if available in the flat file)
should go.

I would have thought something flexible like this : generating static
web pages using data/controls from a flat file : had already been done
but I've not found anything yet.

Similar ThreadsPosted
Need help with my code reading flat file into HTML table January 21, 2006, 12:23 pm
have php create a new .html file on my server... July 4, 2007, 11:33 pm
[FAQ] Flat file DB March 19, 2005, 11:55 pm
Flat File Web Stats in PHP January 20, 2005, 11:00 pm
Flat file security October 3, 2005, 1:18 am
mysql or flat-file - which is cheaper? April 20, 2005, 10:10 am
Replacing a record in a flat file May 11, 2005, 9:48 pm
export flat file db into mysql? November 29, 2005, 3:03 am
News script in flat file February 17, 2006, 6:59 pm
PHP flat file vs DB for a small website October 12, 2006, 4:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap