I've just installed php4.0.4 , apache-1.3.14 and oracle8.1.6 
on my RedHat 7.0 machine.I am trying to write a php script to connect
to my oracle database.But I am facing problems.When I used the oci8
functions as follows:

        <?php
                putenv("ORACLE_SID=sid");
                putenv("ORACLE_HOME=/ora1/app/oracle/product/8.1.6");
                
      line 11   if($conn=OCILogon("scott","tiger"))
                {
                        echo("Successful:Connected\n");
                }
                else {
                        echo("Connection failed\n");
                }
        ?>

        the error message was:
        
Warning:OCISessionBegin: ORA-01034: ORACLE not available in
/www/servers/index.php on line 11
Connection failed

-------------------------------------

And when I wrote the script with ordinary oracle function,

        replacing the OCILogon with a call to Ora_Logon, the error was as
following:

        Fatal error: Maximum execution time of 30 seconds exceeded in
/www/servers/index.php on line 11

-------------------------------------------

        
        Could somebody please help me with this problem? And
also, is there any good tutorial for PHP/Oracle ?

        


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to