Parameters (private lines):
$this->username = 'app'; $this->password = 'passwd'; $this->service = '//local/DEV';
Does not work:
$conn = oci_connect($this->username,$this->password,$this->service);
Does it work:
$conn = oci_connect('app','passwd','//local/DEV');
Why not oci_connect, as object properties as arguments? When using the properties of an object, I get an incorrect login error, but success when using strings. All this code is in the __construct () object.
source share