Log in

View Full Version : Looking for an auto text post script



j0b0
06-10-2007, 11:08 PM
I am looking for a script that can automatically post the contents of an uploaded text file when it appears on the server OR has changed its contents (file size). There are several scripts that will convert text file to html etc but I am looking to have one do the following things:

1. Search a specific directory on server for a text file every X seconds or minutes
2. Take text file when detected and do 1 of 2 things with it (either is fine):
a) post it to a blog such as b2evolution or other as a new post.
b) post it to a website page as html dynamically
3. Once 2 is done, either delete the text file and wait for a new one to appear with the same name, or wait for the file to change (be overwritten with a new version.

I have found scripts to convert text to html (many) but none are automated in any way nor can they query to see if a file exists and then automatically act on it. I also found scripts to auto post stuff but they only do it every hour, 2 hours etc - I need something that will do it as quickly as every 1 min or so if there is new content waiting. Any help would be appreciated

Thanks