Photo Gallery and News Page with PHP & Flat Text File DB

acra

Born

Posts: 2

Loc: India

3+ Months Ago

I need help in creating a photogallery and News headlines page. The problem lies that i want to use a Flat TXT file as a database and need a admin section to add/edit and delete the entries in the Flat TXT file.

Please help me.

Regards

stinger

Graduate

Posts: 157

Loc: San Jose, CA

3+ Months Ago

Hello!

I would use php to do this. The text will be easy. Have a php admin page that will scan a txt file, then, create a form, put the text into a text box for modifications, and then have a submit button.

When you submit the form, you will use php to overwrite the text file with the new/old/same text from the text box. Easy. . .

Your photo gallery can work with a simple scanning of a directory, or directories.

This code will read a text file, find a tab in the text file, and print the text before the tab as a header/title of the file, and then print the body of the file. These will be printed into a text box in a form that you can then modify. You must submit a form and then use php to use the values for the submitted data to write to the file.