Click to See Complete Forum and Search --> : configure php to work with oracle 8.0
Hi, my name is Ofir and i'm working in building sites.
i need to build up connection with php to oracle 8.0
i have win2000 with apache and with php on the iis.
i also have oracle 8.0
when i write ora_logon(...) the php tells me it doesn't recognize this command. : Fatal error: Call to undefined function: ora_logon() in conn.php on line 6
i tried ocilogon and other but it doesn't recognize it.
i think the problem is in configuring the php.
plz help me configure it because i don't have any idea how to do it
1) Check to make sure you have uncommented the desired Oracle extension(s) in your php.ini:
extension=php_oci8.dll (for OCI*())
;extension=php_oracle.dll (for ORA_*())
The OCI*() routines are preferred over the older ORA_*() routines.
2) Make sure you have the extension(s) on disk in the correct directory. If not, download fresh copies from http://www.php.net/downloads.php
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com
Do i have to do anything else accept this?
now if write ora_logon it will be ok?
That should solve the problem. If it doesn't, then let me know and I will try to help you further.
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com
Thanks , it works , but now i havw antother problem with HTTP_POST_VARS it's doesn't work.
i use the post method in the form.
i tried GET method on form and then the HTTP_GET_VARS and it worked.
Do you have anyidea what may cause this?
Without seeing the source code, I would be purely guessing. Posting some of your source code is always a good idea when asking for debugging help.
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com
ermanaykac
02-18-2002, 09:39 AM
Hi;
I' ve got the same problem with Ofir. Even I tried to do what you suggested it didn' t worked. I' ve checked the php.ini file and senn that there are two lines which are:
extension=php_oci8.dll
extension=php_oracle.dll
I am using apache with win2000 and try to connect to the oracle. The home directory is d:\oracle\ora81 and the version is 8.1.7. Could you please tell me what to do in details. Thank you.
Erman Aykac
If you do a phpinfo(), do you see the Oracle extension(s) being listed? If not, go recheck your PHP.INI. Also make sure to restart your webserver if running as a module instead of a CGI.
PHP generating a message about an undefined extension function usually means that the extension really isn't getting loaded. After successfully getting it to load, the next most likely problem is that the libraries that the extension relies upon are installed or aren't installed and configured correctly.
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.