
There’s more about me here, but I am admittedly waaaay less exciting than the folks listed below. Pay them a visit — they’ll know I sent you.
I found this article while Googling around for a way to make Windows XP, Xampp, PHP and Oracle 10g work together. It covers everything pretty well, but I just want to add a few notes to bring the article up to date.
C:\xampp\apache\bin\php.ini;extension=php_oci8.dllBut to put your setup to better use, I recommend you also free up a few more extensions:
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
extension=php_pdo_sqlite.dllextension=php_xdebug.dllextension=php_fileinfo.dllif (!function_exists('oci_connect')) {
die('No dice, homes. You screwed something up.');
}
echo 'It works!!!';Throw in your php tags and save that to a file called “oracle.php” (or whatever you like) in your web document root, and open it up in a browser.That’s all. Make sure this is only done in your local testing environment and not on any production box. Now get codin’.
October 10th, 2008 at 2:39 pm
[...] database, I came across this great post which covers in part some of the items I mentioned in my previous Oracle-related post. So I got through it all, followed the instructions, but still couldn’t connect to the [...]