oci_connect() works only from command line
问题 OK, so I have this terrible problem with oci, apache, php and suse. First off, versions: PHP 5.3.15 (cli) Apache/2.2.22 (Linux/SUSE) OCI8 1.4.9 SUSE 12.2 32 bit Oracle client 10.2.0.4 Problem I have really simple php file: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); oci_connect('user', 'passwd', 'host/sid'); ?> When I run it from command line it executes fine: machine:~ # php oci.php machine:~ # But when i run it in browser, it gives me: Warning: oci_connect() [function.oci