Category: php

Uncaught PDOException: could not find driver 0

Uncaught PDOException: could not find driver

Fatal error: Uncaught PDOException: could not find driver in U:\Webpages\thecanadianhosting.co\app\src\db.inc.php:26 Stack trace: #0 U:\Webpages\thecanadianhosting.co\app\src\db.inc.php(26): PDO->__construct() #1 U:\Webpages\thecanadianhosting.co\app\src\db.inc.php(35): getDB() #2 U:\Webpages\thecanadianhosting.co\app\src\routes.php(14): require('U:\\Webpages\\the...') #3 U:\Webpages\thecanadianhosting.co\app\public_html\index.php(27): require('U:\\Webpages\\the...') #4 {main} thrown in U:\Webpages\thecanadianhosting.co\app\src\db.inc.php on line 26 Solution Enable...

Ajax with PHP 0

Ajax with PHP

Building a basic REST API. For example to be used by third-party service. I used that code to interface with the builtin REST API caller from Mobile framework Sencha Touch. Allowing other domains (cross-domain)...