Home » Open Source » Programming Interfaces » Attempted to call function "oci_connect" (Oracle9i Enterprise Edition Release
Attempted to call function "oci_connect" [message #664208] Thu, 06 July 2017 21:03 Go to next message
Messages: 14
Registered: June 2017
Junior Member
Hi all,

I have an incomprehensible problem with the function oci_connect. Using the web browser, all works fine. But when using the console I obtain the following error

PHP Fatal error: Uncaught Error: Call to undefined function oci_connect() in /var/www/html/test.php:12
Stack trace:
#0 {main}
thrown in /var/www/html/test.php on line 12
I add that oci_connect is used in a service ImportBundle\ImportFunctions\OraCon. Thanks to anyone who can help me with this problem.
Re: Attempted to call function "oci_connect" [message #664211 is a reply to message #664208] Fri, 07 July 2017 00:34 Go to previous message
Michel Cadot
Messages: 68664
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

It is sure the problem is not from your code (it works in a browser) but in the PHP environment you call it and so is out of this site scope.
Look at the environment your http/web server and set the same for your service.

Previous Topic: session variable not working in php
Next Topic: Software Engineer
Goto Forum:

Current Time: Thu Jun 20 10:19:23 CDT 2024