] \"\""); error_log("Examples: "); error_log(" php send_sms.php 16505551212 16504449876 \"hello world\""); error_log(" php send_sms.php 16504449876 \"hello world\""); die; } $id = uniqid(""); $filename = "$OUTGOING_DIR_NAME/$id.json"; file_put_contents($filename, json_encode(array( 'from' => $from, 'to' => $to, 'message' => $message, 'id' => $id ))); echo "Message $id added to outgoing queue\n";