Skip to content

Instantly share code, notes, and snippets.

@Opus1no2
Created February 4, 2013 22:59
Show Gist options
  • Save Opus1no2/4710550 to your computer and use it in GitHub Desktop.
Save Opus1no2/4710550 to your computer and use it in GitHub Desktop.
<?php
/**
*
* Inbound SMS
*/
function getSms($request)
{
$h = fopen('sms.txt', 'w');
if (isset($request['from_number'])) {
foreach ($request as $k => $v) {
fwrite($h, "$k: $v" . PHP_EOL);
}
}
fclose($h);
}
getSms($_REQUEST);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment