i'm currently trying to get a local html file to talk to a php script on my server. Here is what i want to achieve:
i use a desktop application to generate html reports containing test data. these reports are saved into a certain folder on the local disk. The only thing i have control over in this process, is the template for the reports i can edit. I added a button in the template which is supposed to fire a post to the server side php which parses the file and pushes the data into my database.
One requirement is that many testclients on different machines send the data to one centralized server which writes into one centralized database.
Of course i'm running into the cross-domain restrictions for ajax requests and i tried to solve this by using jsonp. However as i understand it, this technology is mainly meant to GET data from external servers, i need to POST the data from the local htmlfile to my server.
Does anyone have an idea on how this can be done? any hints are highly appreciated!!thanks alot!