For you Internet Explorer 6 users out there: If you’re using an older version of Internet Explorer (6 or lower), chances are you’re doing it because you’ve no choice but to do so. I appreciate your situation—I really do. However, I can’t really allow you the same freedom I would allow others on this site because Internet Explorer 6 is unsafe. So, if you can’t use Google Chrome Frame, update your version of Internet Explorer, or download Firefox, I’m going to have to present to you the bare-bones, vanilla version of this website. Since the content here is awesome, you should still be able to enjoy yourself. Cheers!

Home
Where the heart is.

Windows XP, Xampp, PHP, and Oracle 10g

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.

  1. Your “php.ini” file will be found in your Xampp folder. If your setup is like mine, the path to the file is:
    1. C:\xampp\apache\bin\php.ini
  2. At the time of this writing, Xampp is shipped with PHP 5.2.6, and comes with a few very useful extensions that are, by default, deactivated. To make 10g work with Xampp, all you need to do is uncomment the following line by removing the “;” at the beginning of it
    1. ;extension=php_oci8.dll

    But to put your setup to better use, I recommend you also free up a few more extensions:

    • Read up on PDO. If you don’t think it’s useful, then, by all means, leave these lines commented out.
      1. extension=php_pdo_oci.dll
      2. extension=php_pdo_oci8.dll
      3. extension=php_pdo_odbc.dll
      4. extension=php_pdo_sqlite.dll
    • Check out Xdebug if you haven’t already. See my note about PDO.
      1. extension=php_xdebug.dll
    • I personally find SplFileInfo to be a pretty useful class. You may disagree.
      1. extension=php_fileinfo.dll
  3. In case you couldn’t tell, the test code provided in that article is specific to that author’s local environment. To make sure the oracle extension has been loaded, do the following:
    1. if (!function_exists(‘oci_connect’)) {
    2. die(‘No dice, homes. You screwed something up.’);
    3. }
    4. 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’.

[ Commenting closed because of the ridiculous amount of spam.]