do a file called phpinfo.php

<?

phpinfo();

?>

see what version of php are you using, then check in manual if your version is
old enough for "ocilogon"

Pusta a écrit :

> A little background information:
>
> Running PHP on Apache server bundled with Oracle Portal on Redhat Linux 7.1.
> Trying to access the Oracle database from the web using PHP and when I write
> the connect statement, I get this error:
>
> Fatal error: Call to undefined function: ocilogon() in
> /home/students/uss/public_html/index.php on line 6
>
> Here is my code:
>
> <HTML>
> <HEAD>
> </HEAD>
> <BODY>
> <?php
> $dbconnection = OCILogon("username", "password", "databasename");
> $sql = "SELECT GURMAIL_PIDM FROM GURMAIL_GENERAL";
> $parsedsql = OCIParse($dbconnection, $sql)
>  or die("Unable to Parse");
> OCIExecute($parsedsql) or die("Unable to execute");
> ?>
>
> </BODY>
> </HTML>
>
> Can anyone help?? Is my code wrong?  Is the PHP server missing something?
>
> Pusta
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

                           \|/ ____ \|/
                           "@'/ ,. \`@"
                           /_| \__/ |_\
                              \__U_/



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to