This question already has an answer here:
I want to create a PHP project with existing Oracle database.I have only installed the Apache and PHP on the server with Linux OS. I didn't work with Oracle previously. I need to connect to an Oracle database which is situated on a different server.
Is anyone explain me to how to connect the Oracle db which is on another server?
Which package or driver need to used?
</div>
If you're using ODBC, then you need to use the PHP's ODBC driver rather than the OCI8 driver. Otherwise, you need the Oracle client installed on your webserver (even if it's just Oracle's Instant Client) and then you can use OCI8.