in reply to Mixing PHP and Perl

I'm not interested in writing to the database, only reading from it in php.

In that case I would strongly recommend creating a DB user which has read-only privileges and use that in your PHP connection. That way you will mitigate most of the trouble which might otherwise occur.

That said, reading from a database in Perl is pretty easy with DBI. Why not give it a try instead?