<p>How can I detect, using php, if the machine has oracle <code>(oci8 and/or pdo_oci)</code> installed?</p>

<p>I'm working on a <code>PHP</code> project where some developers, such as myself, have it installed, but there's little need for the themers to have it.  How can I write a quick function to use in the code so that my themers are able to work on the look of the site without having it crash on them?</p>

I dont know if I fully understand your question but a simple way would be to do this:
```
```
<?php
  $connection = oci_connect('username', 'password', 'table');
  if (!$connection) {
    // no OCI connection.
  }
?>
```
```