Hi!!!
I was working with php 4.2.2 as a module of apache, and connecting to oracle just fine. But now, i need to work with mapserver (a gis program that only works with php as CGI).
So I compiled PHP to work as cgi and is working, but the connection with oracle is not working any more!! I get the ORA-12154 error.
I think that the error is because PHP (or Apache) is not accessing the environment variables (where i set ORACLE_HOME and ORACLE_SID). I know this becuase when i do a simple "phpinfo", the ORACLE variables aren`t in the environment section, but when i run PHP as a module, that variables are there (in the environment section).
If you know how to solve the problem please reply. How can i tell to Apache or PHP that read the envornment variables???
I really need to connect to oracle as CGI!