Hi
I am attempting to connect to a remote Oracle database using PHP with Wamp Server and keep getting the same error message:
"Fatal error: Call to undefined function oci_connect()..."
Has anyone got any ideas?
oci_connect
Moderator: General Moderators
- hypedupdawg
- Forum Commoner
- Posts: 74
- Joined: Sat Apr 10, 2010 5:21 am
Re: oci_connect
Without looking at any of your files, I would be unsure, but "undefined function" sounds like you are simply not calling an actual function that exists. Are you
a) Sure you have the name right
b) Sure that it is defined as a function?
a) Sure you have the name right
b) Sure that it is defined as a function?
Re: oci_connect
check that you have the php_oci8.dll extension declared in your php configuration... you can check it using phpinfo() if you want
Re: oci_connect
Ive enabled the php_oci8.dll extension but it is not showing up in phpinfo(). Any more help (its driving me mad!)?
Re: oci_connect
did you stop/restart apache (assuming that you are using it) after you enabled the extension ?
Re: oci_connect
Yeah I did, Im running Apache through Wamp Server. Everything I keep trying just doesnt seem to work.
Re: oci_connect
if it is not showing in phpinfo then something is going bad with the setup....
check if you have the extension_dir directive properly configured and also check the parameters setup in the [OCI8] section of your php.ini
if the extension is present in the path defined in "extension_dir" and the parameters are correctly configured is not reason for it to do not work... with the only probably exception of a bad php_oci8.dll
Miko
check if you have the extension_dir directive properly configured and also check the parameters setup in the [OCI8] section of your php.ini
if the extension is present in the path defined in "extension_dir" and the parameters are correctly configured is not reason for it to do not work... with the only probably exception of a bad php_oci8.dll
Miko
Re: oci_connect
Thanks for your help but I still cant seem to get it working. Ive attempted all that you have said. Are there any links to tutorials that you could recommend?