According to the PHP documentation online at http://www.php.net PHP supports several different databases. Here isan excerpted list:
Perhaps the strongest and most significant feature in PHP is its support for a wide range of databases. Writing a database-enabled
web page is incredibly simple. The following databases are currently supported:
Oracle (OCI7 and OCI8)
Whether there is a MAC port for PHP, I don't know. Perhaps there is. You'd do best to check out the docs available at the php.net site.