Is there a way to add a record to the database from an html page. Example:
Users upload html pages (which can be modified via template) to a specific directory. I would like DBMan to look there, and any html pages it finds, add it's title, and any other fields (array) to the database. Like I said, the html page does not have to look any certain way, I have full control over the output. For example, could I create an array to add to database. Unfortunately, the file has to be in .html format, per the news system.
Pseudo---
Open directory,
for each file (.html)
( array would maybe be TYPE OF NEWS, HEADLINE, DATE, AUTHOR, STORY )
add array to DB in appropriate fields
delete .html file
I would like to take this route rather than using an archiving and indexing system. I would create a cron job to "index" the database. This would make searching a little more user friendly.
Thanks for any suggestions...
Chris
Users upload html pages (which can be modified via template) to a specific directory. I would like DBMan to look there, and any html pages it finds, add it's title, and any other fields (array) to the database. Like I said, the html page does not have to look any certain way, I have full control over the output. For example, could I create an array to add to database. Unfortunately, the file has to be in .html format, per the news system.
Pseudo---
Open directory,
for each file (.html)
( array would maybe be TYPE OF NEWS, HEADLINE, DATE, AUTHOR, STORY )
add array to DB in appropriate fields
delete .html file
I would like to take this route rather than using an archiving and indexing system. I would create a cron job to "index" the database. This would make searching a little more user friendly.
Thanks for any suggestions...
Chris