I need a php script that will dig through .txt files and use them to fill a simple html template.
One of those files will contain titles and the others content.
Script should take first line of the file [url removed, login to view] (lets say 1st title is "example")and place it in the title tag, and then find the file named [url removed, login to view] read it and place it as content of the html file.
Then it has to save it as [url removed, login to view] and go from the beginning but this time taking the second line on the [url removed, login to view] and repeating the whole process.
1 other thing would be nice but not that essential.
Inside the template create a h1, 2*h2 and 3*h3 tags which would be filled by randomly selected keyword from the appropriate content file (the same one that its using for content of course.