English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can anyone explain to me what dynamically generated from flat file(s) using PHP means? If provide examples and tutorials would be great

2007-05-16 03:19:37 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

A flat file is a text file.
So the PHP code must read one or more text files and then based on the data produce a web page.

Imagine if you can a web site about cars. I would like to show three different cars on this site.
For each car I will have a separate text file.

You click on a link for one of the cars and the web page will open the correct file and then show the details for that car.

The detail in the file can be text or it can be images. The images will be a file name and not the actual image.

I hope this helps.

2007-05-16 03:37:13 · answer #1 · answered by AnalProgrammer 7 · 0 0

A flat file is a text file with data in it that can be read by a program later. Usually the fields are seperated by tabs or commas and new entries are on a new line.

An address book is a good example:
firstname, lastname, phonenumber, etc
nate, fanaro, 7168555555, likes hot dogs

php can create a file like this easily by looping through an array and printing each line to a file.

2007-05-16 03:42:31 · answer #2 · answered by ? 2 · 0 0

fedest.com, questions and answers