Right guys I tried cURL however, it's not working!
I've used curl_getinfo to find that when the post is made it is just forbidden by the server:
http_code = 403
Is it possible that the database surver knows that the post is been made by a server opposed to a browser (and has a problem with this) as when I post this using a HTML form, everything works fine!
If so, is there any way of making the post appear as if it has originated from a browser?
Here's my code:
$url = "http://my_database_server.com/test.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
$data = array (
"test_value" => "true"
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
$info = curl_getinfo($ch);