Hey guys, long time no chat...
I am kinda stuck on this one and looking for some guidance.
I have a tab-delimited text file. I would like to take each line and
output the data in that line to a new, separate html (php) file. So essentially, I am
exporting a flatfile text database to html pages with each page being
one formatted database record.
I would like to load a text file as a template, then using the tab-delimited file, generate one file per row where each column contains the data from the file.
The file would be saved as one of the data fields.
For example:
ITEM_NUM<TAB>TITLE<TAB>DESCRIPTION
1<TAB>Title 1<TAB>Description 1
2<TAB>Title 2<TAB>Description 2
3<TAB>Title 3<TAB>Description 3
Would generate 3 files.. a 1.php a 2.php and a 3.php each one containing:
<html>
<head>
<title>$TITLE</title>
<meta name="description" content="$DESCRIPTION" />
...etc
I hope that makes sense. Any ideas, suggestions or samples?
Thanks guys!

Reply With Quote
