Using PHP to run a script on another server
In a project I'm working on at the minute, using PHP, I need some way for a PHP script on one server to notify a PHP script on a completely different server that it needs to update its database. The first script will have to pass some information into the second script and possibly get an error code back. All communication should be done over HTTP.
My first solution was a method that involved security by obscurity - that is, just running a script that noone knows about, but it would of course be fairly simple to find out about it and send in malicious data.
So, I'd like some suggestions of how to do this with minimal possibility for exploiting by malicious individuals.
Any ideas would be very much appreciated.
- QS Computing.