It's not even that easy, you need to set up a few environment variables
as well. Here's what typically works for me, customize things to
fit your installation.
PutEnv("ORACLE_HOME=/export/home0/oracle7");
PutEnv("ORACLE_SID=<some db name here>");
PutEnv("ORA_NLS=/export/home0/oracle7/ocommon/nls/admin/data");
$conn_id = ora_plogon("<username>","<password>");
$cur = ora_open($conn_id);
I haven't done much with Oracle in PHP3 so there are probably spiffier
ways for fetching the columns and rows, but this should get you started
at least.
> How will PHP/Oracle deal with the fact that the columns firstname &
> lastname are null?
>
Null columns come into PHP as empty strings ( "" ) I believe.