Skip to content

A repo containing various PHP PDO examples for Azure App Services and SQL databases.

Notifications You must be signed in to change notification settings

Ajsalemo/PHP-Database-Samples

Repository files navigation

PHP-Database-Samples

This repo contains various database samples with PHP using PDO and Database specific Drivers. The drivers used in this sample are:

Each sample can be deployed to an Azure PHP App Service and tested with either Azure Database for MariaDB/Postgres/MySQL Instances or Azure SQL Server.

Running locally

  • Be sure to set the appropriate environment variables as seen in config.php
  • If you encounter 'missing driver' errors, make sure these are enabled in your php.ini file. Depending on your installation method, you may or may not need to install the relevant .dll's in your local environment. For example, the mssql driver.

Releases

No releases published

Packages

No packages published

Languages