Hi, I wrote a script to connect to a remote oracle and it works well when i open it through firefox, but when i execute it under cmd, the " oci_connect(): OCIEnvNlsCreate() failed " appears. I am not the administrator of my notebook, is there anything to do with this? Or what shoud i do to make the script work both under apache(firefox) and cmd? Thanks
well, i searched my machine and there is only one php.ini...it's in my php root directory. And where is the another one supposed to be ?
Ah right - You are on windows? Then that isnt the problem, *nix systems have 2 ini's Im not sure why you would be having a problem on CLI only then, windows isnt really my thing im afraid :/
Yean, always the windows... I may recheck the documentation and hope i could notice something i didn't notice. Thank you anyway.
Are you basing anything (such as the configuration) on the hostname in the browser, and hence wouldn't work via command line? I've worked on code before that sets up the entire environment based on the hostname, so just a thought.
Well, I'm a beginner and i'm not sure i got your point. Could you please make an example( about the configuration or something else ) if it's ok. And Thanks for your advice.