You can use requesturl and send that value to your php server using get requests.
I.e:
PHP Code:
function onCreated() {
temp.url = "http://www.example.com/update.php?var=whatever&value=somevalue";
requesturl(temp.url);
}
Then in your PHP page access the GET values and use some functionality and save it to a text file or in a database.