Its a server side scripting language useful for talking to databases. For example, this board stores the messages everyone types in a database via php to probably an SQL database of some sort. The HTML front end talks to the server by way of php. Php also grabs the database entries (read: messages) and tells the front end what to display. What text to add to the database and where, account management, etc etc.