I checked the phpinfo on both machines and both are set the same way. The only difference that I clearly know of is that with PHP 5 installer that I used I did not need to manually configure to include the oci extension since this was done for me by the installer.
With the PHP 4 installation, I had to install the oci modules and change the php.ini file to change the directory path for the loadable extensions. I had to do this because the PHP 4 installer does not include the oci module.
Both 4 and 5 clearly show both oci8 extensions loaded.
In regards to the tsnnames.ora file, I don't use one since I connect with the server with the sample code:
$ora_db = "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = $ora_db_host)(PORT = $ora_db_port))(CONNECT_DATA = (SID = $ora_db_sid)))";
$c = oci_connect($ora_db_user, $ora_db_pswd, $ora_db);
I'm not too familar with Oracle databases but is there any logs that I can check that can tell me if Oracle is getting my connection request?
Or is there anything in PHP besides printing the ocierror() to view any error codes?