Created
February 4, 2013 22:59
-
-
Save Opus1no2/4710550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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