12345678910111213141516 |
- <?php
- function error($str)
- {
- die(json_encode(array("error" => $str)));
- }
-
- try
- {
- $db = new PDO('mysql:host=localhost;dbname=sms', "sms", "cWrzmRByJtjZ2ax4");
- }
- catch(Exception $e)
- {
- error("Unable to connect to the database");
- }
- $gateTimeout = 5 * 60;
- ?>
|