Jason,
Sounds like the command line call isn't reading php.ini. Try placing the following in your script, above the first Oracle function call:
$path = "/path/to/php_oci8.";
strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? dl($path . "dll") : dl($path . "so");
The path statment expects the full path and filename (minus extension) to the Oracle 8i extension. The second bit merely checks if you're running Win32 or *Nix and then uses the dl() function to load the extension using the file extension appropriate for the server's OS. HTH,
Cheers,
Geoff A. Virgo