Loading ...
Sorry, an error occurred while loading the content.

Re: [php_greek] PHP Oracle connect problem

Expand Messages
  • gfx3D
    Κοιτα στο link που παραθέτω, μήπως βρεις κάτι. http://forums.oracle.com/forums/message.jspa?messageID=1129000 ... From:
    Message 1 of 2 , Aug 31, 2006
    • 0 Attachment
      Κοιτα στο link που παραθέτω, μήπως βρεις κάτι.
      ----- Original Message -----
      Sent: Thursday, August 31, 2006 5:09 PM
      Subject: [php_greek] PHP Oracle connect problem

      Geia sas,

      prospatho na syndeso PHP me remote server tis Oracle.

      eho Apache 1.3 kai PHP 5.1.6

      hrisimopoiontas to parakato kodika poy brika sto php.net:

      $tns = "
      (ADDRESS = (PROTOCOL = TCP)(HOST = yourip)(PORT = 1521))
      (SERVICE_NAME = orcl)
      $db_username = "youname";
      $db_password = "yourpassword" ;
      $conn = new PDO("oci:dbname= ".$tns,$db_ username, $db_password) ;
      }catch(PDOException $e){
      echo ($e->getMessage() );

      pairno to eksis error:

      SQLSTATE[]: pdo_oci_handle_ factory: OCI_INVALID_ HANDLE (/Users/liyanage/ svn/entropy/
      universalbuild/ src/php-5. 1.6/ext/pdo_ oci/oci_driver. c:463)

      Ksereis kaneis poy ofeiletai?

      Yparxei periptosi na leipei kati sto topiko moy mixanima? opos px kapoios client i driver pou einai anagkaios? An nai poios, pos mporo na tsekaro an iparxei, ki an den yparxei pos ton vrisko kai ton egathisto?


      Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail.

    Your message has been successfully submitted and would be delivered to recipients shortly.