PHP doesn't care whether you use POST or GET. Therefore you can encode name, pass, and message in the url, which is much simpler than trying to write an HTTP POST mechanism in C.
Much simpler: Put the uptime call on your site, not in your message base:
<pre>
<?
echo exec("uptime");
?>
</pre>