Hi there
I have a strange request, and am not sure if it will be possible.
I need to be able to POST XML data to a url, that will be extracted from a document. I have read up a little, and have found that both extracting data from a document, and POSTing to a url is possible in PHP.
However, the problem that I have is this: I do not know how to trigger the PHP action. I am using a hotfolder-based application to generate the XML file, which places the XML document into a specific folder. I need for PHP to act on the file when it arrives in that folder, and automatically POST the data to the necessary url. In a sense, I need the folder into which the XML files are being saved, to be some kind of "hotfolder" which will be polled or "watched" by an application, and kick into action once a file arrives in that folder.
The reason I mention that I am using a hotfolder-based application, is that it is possible that I create a custom hotfolder which will trigger a batch file when a file arrives in the folder that is being watched. I can make this batch file to do whatever I need to. In other words, a possible solution would be to have a batch file trigger the PHP action. Again, I do not know if this possible with a batch file, or how do do it if it is.
Any guidance would be appreciated.