abosalaar Posted May 26, 2013 Posted May 26, 2013 How it can be configured using cpanel of the host. Thanks in advance 1
Ice IT Support Posted May 27, 2013 Posted May 27, 2013 This code connects to a database and executes a command $oracledb["host"] = "MYSERVICE"; # service name in the tnsnames.ora file $oracledb["user"] = "myuser"; # username $oracledb["pass"] = "mypass"; # password $oracledb["library"] = "OCI"; $connect_id = ocilogon($oracledb["user"], $oracledb["pass"], $oracledb["host"]); $query = "SELECT * FROM table"; $statement = ociparse($connect_id, $query); ociexecute($statement); $result = array(); while(ocifetchinto($statement, $tmp, OCI_ASSOC + OCI_RETURN_NULLS + OCI_RETURN_LOBS)) { array_push($result, $tmp); } ocifreestatement($statement); var_dump($result); # result is here From http://stackoverflow.com/questions/4583962/connect-to-an-oracle-database-using-php 1
abosalaar Posted June 1, 2013 Author Posted June 1, 2013 I want to connect remote oracle database from php form running on heliohost's stevie. Thanks in advance
Ice IT Support Posted June 3, 2013 Posted June 3, 2013 Stevie doesn't run Oracle. I highly recommend using MySQL on Stevie as an alternative.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now