You could use a password to make sure no ones abuses it. So when you pass the status, you can pass the password in as well and check that in the PHP page...
Then the PHP page could be something like this. Bare in mind I've barely written any PHP for years, this is untested and going from memory... It should give you a rough idea of how to save the file.
Anyway, you can find the PHP reference at http://www.php.net/docs.php.
http://www.url.com/index.php?password=pass&status=Testing
Then the PHP page could be something like this. Bare in mind I've barely written any PHP for years, this is untested and going from memory... It should give you a rough idea of how to save the file.
<?php
$password = "pass";
$filename = "status.txt";
if($_GET['password'] != $password)
die("Invalid password");
if(!isset($_GET['status']))
die("Status not set");
$file = fopen($filename, "w");
if($file)
{
fwrite($file, $_GET['status']);
fclose($file);
}
else die("Could not write status to file");
?>
Anyway, you can find the PHP reference at http://www.php.net/docs.php.