I'm moving a site from postgres/mysql to oracle.
In the past I've written a funtion for my database connection and stored it in initialize.php then I included the file on pages where I need to use the function. The function follows:
Expand|Select|Wrap|Line Numbers
- function initialize() {
- $user= ***;
- $pass=***;
- $host=***;
- $db = pg_connection($user $pass $host);
- //$db = oci_connect($user, $pass, $host);
- }
My question is why doesn't oracle allow me to call the oci_connect within a function or am I just doing something wrong.