Fatal Error Ocilogon
Contents |
index All times are UTC - 5 hours Information The requested topic does not exist. Board index All times are UTC - 5 hours Powered by phpBB Forum Software © phpBB Group
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up oci8 extention not working in php-5.4.3 up vote 0 down http://www.devnetwork.net/viewtopic.php?f=2&t=77485 vote favorite I'm using wampserver and i want to use the oci8 to connect to the oracle database i enabled the oci8 but when ever i see my phpinfo(); it's not there can any one tell me what's going on. i have been searching everywhere for hours but i couldn't find a solution at all. i'm using WampServer Version 2.2 Apache 2.4.2 – PHP 5.4.3 and oracle 11g. http://stackoverflow.com/questions/17219016/oci8-extention-not-working-in-php-5-4-3 every time i execute: it shows this error : Fatal error: Call to undefined function OCILogon() in C:\wamp\www\IDS\Index.php on line 3 php oracle11g php-extension oci8 share|improve this question edited Jun 23 '13 at 12:36 hakre 134k26216387 asked Jun 20 '13 at 16:34 Basil Basaif 174314 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote accepted I downloaded a different php and Apache version instead of Apache 2.4.2 – PHP 5.4.3 now i'm using Apache 2.2.2 – PHP 5.2.6 from wampserver-Addons - Add versions of Apache, MySQL et PHP and i reemoved the ";" semicolon from the php.ini file at the oci8 line it was like this: ;extension=php_oci8.dll i changed it to: extension=php_oci8.dll share|improve this answer answered Jun 21 '13 at 16:23 Basil Basaif 174314 add a comment| up vote 0 down vote First enable your wampserver extension php_oci8 and php_oci8_11g. then please try below code. In this please put database name instead of SID. $c = oci_connect($userName, $password, "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =$serverName)(PORT = 152
Estas en el tema de ocilogon() en el foro de PHP en Foros del Web. hola a todos...tengo un problemon... tengo que conectarme a una base de datos remota http://www.forosdelweb.com/f18/ocilogon-246437/ pero el ocilogon() no me pesca, probe con el oci_logon() tambien, ... https://bugs.php.net/bug.php?id=6589 #1 (permalink) 12/11/2004, 01:07 Bartak Fecha de Ingreso: enero-2004 Ubicación: Chilito Mensajes: 121 Antigüedad: 12 años, 8 mesesPuntos: 0 ocilogon() hola a todos...tengo un problemon... tengo que conectarme a una base de datos remota pero el ocilogon() no me pesca, probe con el oci_logon() tambien, estoy algo deseperado... mi php que ocupo call to es el PHP Version 4.3.6... por favor cualquier sugerencia es bienvenida la ruta del servidor esta bien... le pongo la ip y tampoco este error me tira Fatal error: Call to undefined function: ocilogon() in c:\appserv\www\pro\home.php on line 60 ahora si subo las pag php a una cuenta en el servidor no tengo problemas se conecta... pero no me sirve poner las paginas en el server... he perdido call to undefined como tres dias tratando de ver el problema y no lo pillo... gracias de antemano __________________ "Llegado el momento supervisare my propia caida" - Alvaro Henriquez #2 (permalink) 12/11/2004, 13:44 Bartak Fecha de Ingreso: enero-2004 Ubicación: Chilito Mensajes: 121 Antigüedad: 12 años, 8 mesesPuntos: 0 __________________ "Llegado el momento supervisare my propia caida" - Alvaro Henriquez #3 (permalink) 12/11/2004, 13:53 claudiovega Fecha de Ingreso: octubre-2003 Ubicación: Puerto Montt Mensajes: 3.667 Antigüedad: 13 añosPuntos: 11 Fatal error: Call to undefined function: ocilogon() in c:\appserv\www\pro\home.php on line 60 Este error es claro, se trata de que en el equipo en que tienes php, el que estas usando porque al parecer en el servidor si, no tienes soporte de oracle para php. Puede que no habilitaras la extension de oracle, o no hayas compilado php para soportar oracle, obviamente dependiendo de que sistema operativo uses. #4 (permalink) 13/11/2004, 01:09 Bartak Fecha de Ingreso: enero-2004 Ubicación: Chilito Mensajes: 121 Antigüedad: 12 años, 8 mesesPuntos: 0 gracias por contestar... claudio donde puedo habilitar el soporte para oracle... ? el algun .ini saludos __________________ "Llegado el momento supervisare my propia caida" - Alvaro Henriquez #5 (permalink) 13/
2005-01-31 23:03 UTC From: william_t_lee at hotmail dot com Assigned: Status: Not a bug Package: OCI8 related PHP Version: 4.0.2 OS: RedHat Linux 6.2 Private report: No CVE-ID: View Add Comment Developer Edit [2000-09-07 03:21 UTC] william_t_lee at hotmail dot com php 4.0.2 oracle 8.1.5 apache 1.3.12 When I try and run a php script that accesses the database, I get the "Call to undefined function: ocilogon()" error. The code I am running is: putenv("ORACLE_SID=orcl"); putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.5"); $conn = OCILogon("scott","tiger"); ... Oracle SQL*Net has been configured and works fine. I have compiled php with apache and oracle as listed: > cd /usr/local/src/apache_1.3.12 > ./configure --prefix=/usr/local/apache > cd /usr/local/src/php-4.0.2 > ./configure --with-oci8=/u01/app/oracle/product/8.1.5 --with-apache=/usr/local/src/apache_1.3.12 --enable-track-vars > make > make install > cd /usr/local/src/apache_1.3.12 > ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a > make > make install Running phpinfo() gives: PHP Version 4.0.2 System Linux nmdos-orat 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown Build Date Sep 6 2000 Configure Command './configure' '--with-oracle=/u01/app/oracle/product/8.1.5' '--with-apache=../apache_1.3.12' '--enable-track-vars' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib ZEND_DEBUG disabled Thread Safety disabled This program makes use of the Zend scripting language engine: Zend Engine v1.0.2, Copyright (c) 1998-2000 Zend Technologies -------------------------------------------------------------------------------- PHP 4.0 Credits -------------------------------------------------------------------------------- Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On arg_separator & & asp_tags Off Off auto_append_file no value no value auto_prepend_file n