Re: [PECL-DEV] oci8

[email protected] (Christopher Jones)
Newsgroups php.db,php.pecl.dev
Message-ID <[email protected]>
Hi Fred,

[email protected] is a development mail list. The best place to
post to is [email protected].  I'm ccing that list: please remove
pecl-dev from any followup mail.

Fred Silsbee wrote:
 > I have Fedora 9   2.6.27.5-37.fc9.i686  and Oracle 11g1

 > oracle@LMKIII oci8-1.3.4$ phpize also tried phpize.php
 > bash: phpize: command not found

I know on Redhat EL you need the php-pear and php-devel RPMs to get
pecl, pear and phpize.

 > the README says to run ,/configure but there is only config.m4 and
 > config.w32

phpize creates configure.

 > I am trying to get a PHP connection to Oracle 11g1
 >
 > <?php
 >
 >         if ($c = oci_connect('hr','hr','//localhost/lmkiiiGDNSID')) {
 >
 >                 echo "Successfully connected to Oracle.\n";
 >
 >                 OCILogoff($c);
 >
 >         } else {
 >
 >                 $err = OCIError();
 >
 >                 echo "Oracle Connect Error " . $errtext;
 >
 >         }
 >
 > ?>
 > I get no errors just doesn't work!

Given the previous build failures it's unlikely this code will run.

If you haven't set display_errors to On in php.ini you won't see any
automatic PHP errors.

Also, your error printing code should look like:

   echo "Oracle Connect Error " . $err['message]';

For information on OCI8 there are a number of books available,
including my free PDF book at http://tinyurl.com/f8jad.  (A new
version of this book should be out in the next week or so: I've just
finished my edits on it.)

Chris

-- 
Email: [email protected]  Tel: +1 650 506 8630
Twitter:  http://twitter.com/ghrd    Free PHP Book: http://tinyurl.com/f8jad
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.