PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$connect = odbc_connect("dev1.world", "report", "report") or die("Couldn't connect to source");
and I get this error message
Warning: SQL error: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed, SQL state IM004 in SQLConnect in D:\Apache\Apache2\htdocs\toppc\odbcTest.php on line 3
You need to enable the relevant extension in your PHP.INI file (windows), you also need the Oracle client on your server, relevant entries in your TNS Names file. I presume you can tnsping dev1 from your php server?
These functions do not use ODBC but connect directly to the Oracle dll's (I think) which can only be a good thing, not having to go through a Microsoft ODBC driver.