PHP is a popular, free object-oriented programming language used by web developers to create dynamic web pages. PHP is similar to C++ in many respects. PHP has the ability to interface with databases such as PostgresSQL and MySQL to store data. PHP can also integrate with a variety of authentication protocols including LDAP. This language must be compiled at runtime which can cause performance issues on servers with heavy usage, however, several compilers exist which can compile the code prior to runtime, increasing performance. Below is an example of a simple PHP script.
echo “This is my first PHP program!<br>”;
echo “Variable is greater than 0<br>”;
echo “Variable is equal to 0<br>”;
echo “Variable is less than 0<br>”;