You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sql.php 256B

12345678910111213141516
  1. <?php
  2. function error($str)
  3. {
  4. die(json_encode(array("error" => $str)));
  5. }
  6. try
  7. {
  8. $db = new PDO('mysql:host=localhost;dbname=sms', "sms", "cWrzmRByJtjZ2ax4");
  9. }
  10. catch(Exception $e)
  11. {
  12. error("Unable to connect to the database");
  13. }
  14. $gateTimeout = 5 * 60;
  15. ?>