PDO or OCI for php/oracle

I skimmed through the 'oracle underground manual' and it said the oci method is prefered. but i was wondering doesn't PDO use some sort of OCI libraries/functions anyway, aka maybe even the same ones?
aka if you use PDO for oracle, does it internally though abstraction use php's oci_connect() to connect to your oracle database?
so basically im also asking... when u enable pdo and its oci .dll...
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
Is the php_pdo_oci.dll just an interface to interact with php's oci functions. Just thought I'd ask cause it seems like they are separate, but i read somewhere pdo uses oci libraries not sure exactly what that means since you have options of oci or pdo and that statement sounds like the technologies merge/overlap a little (at least from pdo's side).

PDO will emulate parsing for the drivers that do not support them? What good does that do to me? If I want transparent use of the database, I could always use abstraction classes like ADOdb. PDO is is largely untested and unfinished and doesn't even allow you to get the cursor metadata and get the names and the data types of the columns in your query.
To clarify further, PDO will only emulate the prepare statement, it will not do anything for the statement portability. Statements that reference oracle specific functions or "CONNECT BY" will still fail to execute against MySQL, even if PDO is used. So far, my advice is to stay away from PDO.

Similar Messages

  • Free web hosting for PHP Oracle

    Hi,
    I am a senior student and I have my final year project.For that I am suing PHP and Oracle.Is there anyone who could advise me on a good web hosting site for student aplications available if not for free,at least for a low price for my Oracle database and website.
    Note that the website I am building will not be used for comercial purposes, only for education.I will deeply apreciate any help I can get.
    Thank you

    Hiya,
    Being the sales Director for PHP Oracle Hosting I am proud to say that we do provide high quality of service at the cheapest prices. Our IT guys are professional consultants and are available almost 24hours
    www.phporaclehosting.com

  • Urgent: Forum module for PHP/Oracle 8i

    I'm developping a PHP application over Oracle 8i where there is the urgent need of integrating a forum module. Does anyone know where I can buy a good one?
    Thanks in advance,
    Paulo Sousa

    I think the Invision Power Board supports Oracle, but you have to have a driver for it to work.
    Message was edited by:
    MartynC

  • Free web hosting for PHP Oracle 10g XE applications

    Hi guys
    I am a student currently completing my final year project of a BSc Information Systems / Computer Science programme. I am using PHP and Oracle 10g XE and I was hoping that someone could advise me on a good web hosting site for student applications that is available at no cost, since I can't afford to pay for hosting. It is important that I host my site because my university tutor (in the UK) needs to access my site and provide feedback at this point in the project. Any assistance will be very much appreciated.

    Just to let everyone know, i will do free hosting for students needing it for there projects, i will need an academic email address for corespodence, so thats a .edu or .ac.uk for example.
    I have just relaunched the website and slashed my prices, so starter packages are from 2.99 a month for oracle and php. www.phporaclehosting.com
    Any questions reply to this thread

  • HELP! --with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared

    I have oracle instant client installed on C:\oracle\instantclient_11_2 and the environment variable for path set to C:\oracle\instantclient_11_2 on my windows VPS server. When I install PHP version 5.3.6 with the OCI8 extension it installs correctly. I run a php script with phpinfo(); and I see...
    "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
    But no OCI8 extension info is listed. So that tells me it's not installed and I can't do any oci functions.
    I don't have a D:\php-sdk\oracle\instantclient10\sdk directory on that server and I have no idea on how to change the default compiled directory. If I run the php.exe I get an error saying that it can't locate the oci.dll...
    How do I get this instant client path fixed?
    I am at the end of my rope so who ever answers this post. THANK YOU!!!

    This is a dup of this :
    HELP! "--with-oci8=D:\php-sdk\oracle\instantclient11\sdk,shared"

  • OCI for Oracle Reports

    Does anyone know if an OCI for Oracle Reports is available for Pro C/C++? If so where is it documented and how is it used?
    Thanks,
    Emad

    user4594420 wrote:
    Oracle7 for windows and OracleClient7 (oci.h, oci.o and others) for linux ?That would imply a really old version of windows (db side) and linux based os (client side). Perhaps SCO Unix was the only certified combination back then.
    You should talk to someone who can verify platform/system requirements.
    For the client side you might want to consider using a later Client release, a more recent old version (e.g. 8.1.7) that could talk to a Oracle7 server and work on your linux platform. There's a interoperability matrix on Metalink/MOS.

  • Oracle 9 OCI for UnixWare

    Dear All,
    How can I get OCI for UnixWare 7? I've been browsing the
    net for days now and I couldn't find anything.
    I only need the libraries and header files because
    I have to access a remote database (Oracle9) from a
    C program.
    thanks in advance
    Balazs

    Hi!
    I had the same problem trying to use JDBC-OCI driver, and the problem was solved when I set the LD_LIBRARY_PATH modifing the original $ORACLE_HOME/lib to $ORACLE_HOME/lib32
    This is because in 64 bit hardware arquitectures, oracle installas those two folders. Try to compile using the libraries in $ORACLE_HOME/lib32

  • Unicode in php oracle

    While using multilanguage in php/oracle iam facing some issues
    i gave input as : Portuguese: O próximo vôo à
    and got output as : Portuguese: O pr?ximo v?o ?
    for some special characters it is replaced by '?' mark.
    iam using php5 and orcle 9 and OCI for connecting.
    i gave NLS_CHARACTERSET as UTF8
    and the unicode datatype as NVARCHAR2(100)
    Plz some one help me out in solving it

    hi..
    using alter session in php i changed my nsl_lang to PORTUGUESE
    but still the data is stored in ? for some special characers
    Array
    [PARAMETER] => Array
    [0] => NLS_LANGUAGE
    [1] => NLS_TERRITORY
    [2] => NLS_CURRENCY
    [3] => NLS_ISO_CURRENCY
    [4] => NLS_NUMERIC_CHARACTERS
    [5] => NLS_CALENDAR
    [6] => NLS_DATE_FORMAT
    [7] => NLS_DATE_LANGUAGE
    [8] => NLS_CHARACTERSET
    [9] => NLS_SORT
    [10] => NLS_TIME_FORMAT
    [11] => NLS_TIMESTAMP_FORMAT
    [12] => NLS_TIME_TZ_FORMAT
    [13] => NLS_TIMESTAMP_TZ_FORMAT
    [14] => NLS_DUAL_CURRENCY
    [15] => NLS_NCHAR_CHARACTERSET
    [16] => NLS_COMP
    [17] => NLS_LENGTH_SEMANTICS
    [18] => NLS_NCHAR_CONV_EXCP
    [VALUE] => Array
    [0] => PORTUGUESE
    [1] => AMERICA
    [2] => $
    [3] => AMERICA
    [4] => .,
    [5] => GREGORIAN
    [6] => DD-MON-RR
    [7] => PORTUGUESE
    [8] => UTF8
    [9] => WEST_EUROPEAN
    [10] => HH.MI.SSXFF AM
    [11] => DD-MON-RR HH.MI.SSXFF AM
    [12] => HH.MI.SSXFF AM TZR
    [13] => DD-MON-RR HH.MI.SSXFF AM TZR
    [14] => $
    [15] => AL16UTF16
    [16] => BINARY
    [17] => BYTE
    [18] => FALSE
    Input i gave : próximo vôo à
    out put : pr??ximo v??o ??

  • Forward me the link for installing Oracle Client 10g on Windows 7 64-bit?

    Hi
    Can anybody send me the link for downloading Oracle Client 10g on Windows 7 64-bit?
    Regards

    Arizuddin wrote:
    Actually i installed TOAD for oracle v9.5 on laptop with Windows 7 ultimate
    it gives 'Cannot find OCI DLL: oci.dll'. It seems TOAD for Oracle is a 32-bit only app, which means that it requires a 32-bit Client.
    You might also want to stay away from installing Toad under "Program files (x86)".
    Consider taking a look at Oracle SQL Developer - a very good alternative to the toad.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/index.html
    For other questions specific to Toad, please see e.g. toadfororacle.com.

  • PHP- Oracle not working- Call to undefined function OCILogon() ERROR

    Hi,
    I am trying to just do a test program to test php - oracle connection,
    My versions are: php5.2.1-Win32 and Oracle 10g
    I have made the following settings:
    1.) Uncommented the following lines in php.ini:
    extension=php_oci8.dll
    extension=php_oracle.dll
    2.) Set extension_dir = "C:\php-5.2.1-Win32\ext"
    Changed the httpd.conf file as: ADDED
    1.)LoadModule php5_module C:/php-5.2.1-Win32/php5apache2.dll
    2.)PHPIniDir "C:/Program Files/Apache Group/Apache2/conf-"
    3.) LoadFile "C:/php/php5ts.dll"
    4.)<IfModule php5_module>
    <Location />
    AddType text/html .php .phps
    AddHandler application/x-httpd-php .php
    AddHandler application/x-httpd-php-source .phps
    </Location>
    </IfModule>
    5.) AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php-source .phps
    But when I am tryin to run the following program:
    <?php
    echo "<h1>OCI Test</h1>\n";
    $conn=OCILogon("system", "sheetal16", "orcl");
    $stmt = OCIParse($conn, "SELECT table_name FROM user_tables ORDER BY table_name");
    OCIExecute($stmt, OCI_DEFAULT);
    while (OCIFetch($stmt)) {
         $table_name = OCIResult($stmt, "TABLE_NAME");
         echo "$table_name<br />\n";
    OCIFreeStatement($stmt);
    OCILogoff($conn);
    ?>
    I am getting the following error:
    OCI Test
    Fatal error: Call to undefined function OCILogon() in C:\Program Files\Apache Group\Apache2\htdocs\test2.php on line 3
    Please help me to solve this problem.
    Thanks,
    Sheetal

    See Re: PHP- Oracle not working- Call to undefined function OCILogon() ERROR

  • Errors in PHP/Oracle article

    Hi,
    There are a few errors in the article dealing with PHP/Oracle located at http://otn.oracle.com/oramag/webcolumns/2003/techarticles/hull_php.html
    In the listing for the section called "How to use a database":
    - $mycursor ora_open ($conn);
    should be
    $mycursor = ora_open ($conn);
    - echo "RESULT: ora_getcolumn ($mycursor, 0), ora_getcolumn ($mycursor, 1) <br>";
    The above is not the way it works in PHP and you won't get the expected results. You can throw variables in between your double-quote delimited strings, but not function calls. You'll have to concatenate the function calls like this:
    echo "RESULT: ".ora_getcolumn ($mycursor, 0).", ".ora_getcolumn ($mycursor, 1)."<br>";

    Leendert:
    Thanks for the comments. The first one is an obvious typo. The second
    is a pretty obvious mistake which I missed while reviewing this. Although
    PHP will expand variables in a string like that, it will not handle
    function calls. How could it. I just tried it, and concatenation works
    just as you suggest. Thanks for the corrections, and we updated the
    article.
    Sean

  • PHP & ORACLE Connectivity on Solaris

    Hi all,
    You can check this site for PHP and Oracle connection tutorial. It is intended to installing Apache and PHP with Oracle support and connecting and using Oracle via PHP.
    Page URL :
    http://gokmen.selcuk.edu.tr/tutor/orasol/ociphp.php
    Additionally, You will see an alternative way escaping from ORA-12154 and ORA-12545 errors while Oracle connection via PHP.
    Hope you find useful...
    Mustafa GOKMEN

    Hello,
    My developers have changed all the API´s to OCI8 and the code is able to connect with oracle 10g with php4 but, i am still getting this warning .i.e
    Warning: ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/English/tender_list.php on line 340
    i am unable to figure it out, every thing is working fine but still i am getting it ?
    thanks

  • What is going on for PHP at OOW

    http://db360.blogspot.com/2008/08/what-is-goign-on-for-php-and-ruby-on.html

    This is not a question! It's an announcement. :-)
    All too secret, eh ...
    http://blogs.oracle.com/opal/2008/09/setting_up_for_oracle_openworl.html
    I should have looked before I decided to fly in on Monday, oops ....

  • OEM Monitoring for PHP Applications

    Hi,
    Does OEM Grid Control has any pack or plugin available for PHP based web applications, deployed at standard Apache web server?
    Regards.

    It depends on what you are trying to monitor. You could use Apache to monitor the server that your PHP code runs on, host monitoring plug-in to monitor the server box and any log file that you output. You could also use synthetic service test as part of the standalone Service Level Management Pack to ping the various web pages that your PHP app exposes. Beyond that, if your app outputs specific statistics, you could create a plug-in using our Plug-in Development Kit, and have your PHP program shows up as target(s) within EM.
    Our other products that are applicable to monitoring PHP-based web applications are Oracle Real User Experience Insight, and Oracle Application Testing Suite.
    <br>
    <br>
    Chung
    <br>
    <br>
    Application Management Blog<br><br>

  • PHP/ORACLE Pagination

    Hi All,
    Can any one help me to create PHP/ORACLE Pagination..
    Thanks
    Sam

    Hi pals
    Here is a good easy sample of pagination using Oracle in PHP, Please notice that I have a layer, running different queries which I need, and in some lines below I've used them but the names of the function and variable which I've called are obviously seen that how they perform.
    Further, Please note that you would be expected to call your own oracle database through PHP oracle functions, and as you can see, I have a table storing page sessions and the function "oracle->select" runs the query "SELECT * FROM SESSION_ID" and returns its result and the variable "numberrows" has the number of rows which the implemented query has returned.
    <html>
    <head>
    <title>PAGING</title>
    </head>
    <body>
    <?
    session_start();
    $session_check = $orcl->oracle_select("SESSION_ID", "*");
    $Per_Page = 10; // Per Page
    $Num_Rows = $orcl->numberrows;
    if( !isset( $_GET["Page"] ) )
         $Page=1;
    else
    $Page = $_GET["Page"];
    $Prev_Page = $Page-1;
    $Next_Page = $Page+1;
    $Page_Start = ( ( $Per_Page*$Page ) - $Per_Page );
    if( $Num_Rows <= $Per_Page )
         $Num_Pages =1;
    else if( ( $Num_Rows % $Per_Page ) == 0 )
         $Num_Pages = ( $Num_Rows / $Per_Page );
    else
         $Num_Pages = ( $Num_Rows / $Per_Page ) + 1;
         $Num_Pages = (int)$Num_Pages;
    $Page_End = $Per_Page * $Page;
    if ( $Page_End > $Num_Rows )
         $Page_End = $Num_Rows;
    ?>
    <table width="800" border="1" cellpadding="0" cellspacing="0" style="font-size: 12px; font: Tahoma">
    <tr>
    <th width="400" align="center">CUSTOMER</th>
    <th width="400" align="center">Name</th>
    </tr>
    <?
    for($i=$Page_Start; $i<$Page_End; $i++)
    ?>
    <tr>
    <td width="400" align="center"><div align="center"><?=$session_check["ID"][$i]; ?></div></td>
    <td width="400" align="center"><?=$session_check["USER_ID"][$i];?></td>
    </tr>
    <?
    ?>
    </table>
    <table width="800" border="0" cellpadding="0" cellspacing="0" style="font-size: 12px; font: Tahoma">
    <tr>
    <td align="center"> </td>
    </tr>
    <tr>
    <td align="center">Total <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page :</td>
    </tr>
    <tr>
    <td align="center">
    <?
    if($Prev_Page)
         echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</a> ";
    for($i=1; $i<=$Num_Pages; $i++){
         if($i != $Page)
              echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]";
         else
              echo "<b> $i </b>";
    if($Page!=$Num_Pages)
         echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>Next>></a> ";
    ?>
    </td>
    </tr>
    <tr>
    <td align="center"> </td>
    </tr>
    </table>
    </body>
    </html>

Maybe you are looking for

  • HOW TO TURN $6 INTO $6,000!!!!!! READING THIS COULD CHANGE YOUR LIFE!

    HOW TO TURN $6 INTO $6,000!!!!!! READING THIS COULD CHANGE YOUR LIFE! I found this on a bulletin board and decided to try it. A little while back, I was browsing through newsgroups, just like you are now, and came across an article similar to this th

  • DOM Parser Configuration...how to switch off DTD validation?

    Hi all, I am developing some implementation code in Java using JBuilder2005, in which DOM3 parser is also being utilised. Now the question is how to switch off DTD validation (seems its default mode is 'on') so that no validation will be carried out

  • How to install Cocoon into Weblogi5.1

    I try to install Cocoon into weblogic5.1 step by step according to Cocoon install guide but it can't work . while I start weblogic it have followed error: Tue Dec 19 18:32:17 EST 2000:<E> <HTTP> Could not find Web application 'cocoonwar' java.io.File

  • Aperture 2.1 stuck or freezing when started

    After the splash screen when I see the main screen, the beachball starts and doesn't stop. Except for the beachball the application freezes? I'm not sure what to do, I've rebooted,restarted I'm out of options. I'm in the middle of uploading a wedding

  • IPod Classic - skips tracks between songs

    i have a brand 120G classic. when i play with my BOSE sound dock it periodically skips half way through tracks -- various tracks. But when i use any of my other iPods (iTouch, mini, friends classix) they work fine (so that eliminates the docking stat