The environment is Windows with Apache/php/mySQL. I have written a bunch of web pages that take user input and stuffs the information into the database. This works fine. But also running on the server is another program that generates a series of text files that I would also like to stuff into the database.
I wrote a web page or two that the user can visit and cause the files to be processed. Again, this works OK. But the problem is that the user sometimes forgets, then the data in the database is not up-to-date.
The grand idea is, through a web page, to be able to start a process that would just continually look for new text files and process them. While this is runnining, I'd like to let the user continue on with their other stuff. Ideally, it would be nice for the user to come back and see status - ie. how many files processed, and when it's time to go home, stop the process that looks for the text files.
The only idea I can come up with is on the server (that's running apache/php/mysql and this other application) is to manually open a dos window and run a php script in that window that just loops looking for these files to read. But that seems kind of kludgy to me, and the user can't do this through a web browser.
Is there a way to do this with with php/Apache on Windows? Hints and pointers to articles greatly appreciated. I'm fairly new at php and apache, but I'm a quick study. Thanks in advance.
I wrote a web page or two that the user can visit and cause the files to be processed. Again, this works OK. But the problem is that the user sometimes forgets, then the data in the database is not up-to-date.
The grand idea is, through a web page, to be able to start a process that would just continually look for new text files and process them. While this is runnining, I'd like to let the user continue on with their other stuff. Ideally, it would be nice for the user to come back and see status - ie. how many files processed, and when it's time to go home, stop the process that looks for the text files.
The only idea I can come up with is on the server (that's running apache/php/mysql and this other application) is to manually open a dos window and run a php script in that window that just loops looking for these files to read. But that seems kind of kludgy to me, and the user can't do this through a web browser.
Is there a way to do this with with php/Apache on Windows? Hints and pointers to articles greatly appreciated. I'm fairly new at php and apache, but I'm a quick study. Thanks in advance.