PostgreSQL PHP

last modified July 6, 2020

This is a PHP tutorial for the PostgreSQL database. It covers the basics of PostgreSQL programming with PHP. The examples were created and tested on Linux.

Table of Contents

PostgreSQL & PHP

PostgreSQL is a powerful, open source object-relational database system. It is a multi-user database management system. It runs on multiple platforms including Linux, FreeBSD, Solaris, Microsoft Windows and Mac OS X. PostgreSQL is developed by the PostgreSQL Global Development Group.

PHP is a scripting language designed for web development. It is used to produce dynamic web pages. Currently, PHP is one of the most widely used programming languages. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features. PHP can be embedded into HTML code and it generally runs on a web server. PHP supports both object oriented and procedural programming styles.

Related tutorials

If you need to refresh your knowledge of the PHP language, there is a full PHP tutorial on ZetCode. New language features of PHP 7 are covered in New language features in PHP 7 article. You can also find PHP mysqli tutorial, PHP SQLite3 tutorial, and MongoDB PHP tutorial on ZetCode.