Simple script coded in PHP to pull in content from a database and create pages of content.
The script will take a set of keyword & type pairs and then randomly pull in sentences to create paragraphs of content.
You will need PHP & MySql
## Deliverables
The script will pull data from the database as follows: -
we have a table of sentences (for example "The best way to find @@job@@ is to contact a supplier in @@place@@)
we have a table of keywords in the form of
keyword / type
for example "dentist" / "job"
or "lancaster" / "place"
then we have a page that allows us to pull these sentences from the database to create content
we have a form that allows us to enter the maximum and minimum number of sentences
then when we click "Go" it pulls a random number between the maximum and minimum number and gets that number of random sentences from the database. Then it replaces the tokens @@job@@ or @@place@@ in the example above to create a page of content that can be copied and pasted to somewhere else.
so in the example above we could end up with an output like: -
"The best place to find @@job@@ in @@place@@ is to contact local suppliers through the yellow pages. If you cannot find @@job@@ or even @@job2@@ you will need to get some advice. We can offer such advice from our @@place@@ office or even from our head office at @@place2@@."
Which when seen on screen would have had the tokens replaced with content from the keywords table we then get: -
"The best place to find dentists in Lancaster is to contact local suppliers through the yellow pages. If you cannot find dentists or even orthodontists you will need to get some advice. We can offer such advice from our Lancaster office or even from our head office at Manchester."