This file contains hidden or 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
<%@ Page Language="C#" %> | |
<% | |
// Load NameValueCollection object. | |
NameValueCollection coll=Request.QueryString; | |
if (coll.Count > 0) { | |
// File where data will be written. | |
System.IO.StreamWriter file = new System.IO.StreamWriter("/path/to/test.txt"); |
This file contains hidden or 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 | |
/** | |
* | |
* A small mash-up of Ifbyphone and api.wine.com | |
* | |
* Returns a brief description of a wine label that is | |
* sent via SMS to an Ifbyphone number. | |
* | |
* Usage: | |
* |
This file contains hidden or 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 | |
/** | |
* | |
* Convenience class for using Ifbyphone recording API | |
* | |
* This class provides conveniant methods for using Ifbyphone | |
* recording API and can be expanded to include intelligent | |
* error handling based on the xml response from Ibyphone for | |
* any API call. | |
* |
This file contains hidden or 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 | |
/** | |
* | |
* Short example of how receive post data from | |
* an Ifbyphone IVR and send a response after validation | |
* | |
* Example Usage: | |
* | |
* $example = new EmployeeValidationExample($_GET); | |
* echo $example->sendXmlResponse(); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<center> | |
<form> |
This file contains hidden or 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 | |
/** | |
* | |
* Usage: | |
* | |
* $dist = new DistributorData($_REQUEST); | |
*/ | |
class DistributorData | |
{ | |
/** |
This file contains hidden or 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) { |
This file contains hidden or 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 | |
/** | |
* | |
* Example | |
*/ | |
class Survo_To_Sms | |
{ | |
/** | |
* @var array $_IvrOptions | |
*/ |
This file contains hidden or 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 | |
/** | |
* Caesar Cipher | |
*/ | |
$msg = 'GUVFVFZLFRPERGZRFFNTR'; | |
$key = 13; | |
$mode = 'decrypt'; |
This file contains hidden or 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 | |
/** | |
* Caesar Hack | |
*/ | |
$message = 'GUVFVFZLFRPERGZRFFNTR'; | |
$letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
for ($j = 0; $j < strlen($letters); $j++) { | |
$trans = ''; | |
for ($i = 0; $i < strlen($message); $i++) { |
OlderNewer