Forum Stats

  • 3,733,852 Users
  • 2,246,830 Discussions
  • 7,856,896 Comments

Discussions

PHP Startup: Unable to load dynamic library 'pdo_oci'

3918249
3918249 Member Posts: 2
edited May 2019 in PHP

I have the following problem. When I execute a PHP command for example

<span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">php </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">--</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">version</span>

I obtain the following:

<span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Warning</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Startup</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unable</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> to load </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">dynamic</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> library </span><span class="str" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">'oci8_11g'</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">tried</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\oci8_11g </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">No</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> se puede encontrar el m</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dulo especificado</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.),</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\php_oci8_11g</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(%</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">no</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> es una aplicaci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">n </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Win32</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> v</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">ß</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">lida</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.))</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">in</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unknown</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> on line </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">0</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Warning</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Startup</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unable</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> to load </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">dynamic</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> library </span><span class="str" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">'oci8_11g'</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">tried</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\oci8_11g </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">No</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> se puede encontrar el m</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dulo especificado</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.),</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\php_oci8_11g</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(%</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">no</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> es una aplicaci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">n </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Win32</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> v</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">ß</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">lida</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.))</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">in</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unknown</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> on line </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">0</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Warning</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Startup</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unable</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> to load </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">dynamic</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> library </span><span class="str" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">'pdo_oci'</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">tried</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\pdo_oci </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">No</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> se puede encontrar el m</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dulo especificado</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.),</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\php_pdo_oci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(%</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">no</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> es una aplicaci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">n </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Win32</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> v</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">ß</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">lida</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.))</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">in</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unknown</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> on line </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">0</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Warning</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Startup</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unable</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> to load </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">dynamic</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> library </span><span class="str" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">'pdo_oci'</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">tried</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\pdo_oci </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">No</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> se puede encontrar el m</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dulo especificado</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.),</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\php\ext\php_pdo_oci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(%</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">no</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> es una aplicaci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">¾</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">n </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Win32</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> v</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">ß</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">lida</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.))</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">in</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Unknown</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> on line </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">0</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  PHP </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">7.3</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">2</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">cli</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">built</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Feb</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">5</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">2019</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">22</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">55</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">35</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> ZTS MSVC15 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Visual</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">++</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">2017</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> x64 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Copyright</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">c</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1997</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">-</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">2018</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">The</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> PHP </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Group</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Zend</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Engine</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> v3</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">3.2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">,</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Copyright</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">(</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">c</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1998</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">-</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">2018</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Zend</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Technologies</span>

And when I tried to use 'oci_connect' I obtain the following:

<span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">**</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Fatal</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> error</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Uncaught</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Error</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Call</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> to </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">undefined</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">function</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> oci_connect</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">()**</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">in</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\xampp\htdocs\enviar_correo_update\conexion</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">php</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">3</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Stack</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> trace</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #858c93;">#0 {main} thrown in C:\xampp\htdocs\enviar_correo_update\conexion.php on line 3</span>

My enviroment is the following:

  • Windows Server 2016 Standard X64
  • PHP 7.3.2
    • Compiler MSVC15 (Visual C++ 2017)
    • Architecture x64
    • Thread Safety enabled
  • Oracle DB 11g (11.2 X86)
  • instantclient_11_2 (x86)
    • Route C:\instantclient_11_2
  • I download the php_oci8-2.2.0-7.3-ts-vc15-x64 DLL package ( https://pecl.php.net/package/oci8/2.2.0/windows ) and paste it in C:\xampp\php\ext
  • My variables PATH and TNS_ADMIN have the location of instantclient (C:\instantclient_11_2)
  • My PHP.ini has uncommented the extensions that i need:

----PHP.INI---

<span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">mysqli  extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">oci8_11g  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">oci8_12c  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Use</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">with</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Oracle</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Database</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">12c</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Instant</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #2b91af;">Client</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">odbc  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">openssl  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">pdo_firebird  extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">pdo_mysql  extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">pdo_oci  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">extension</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">pdo_odbc</span>

If I run where oci*:

<span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\Users\fpoveda</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">gprosoft</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">></span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #101094;">where</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> oci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">*</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\oci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\oci</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">sym C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\ocijdbc11</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\ocijdbc11</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">sym C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\ociw32</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">dll C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\instantclient_11_2\ociw32</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">sym C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\orant\BIN\OCI</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">DLL C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">:</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">\orant\BIN\OCIW32</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">DLL</span>

I don't know where is the problem. I spent more than two days in that and nothing. If someone can help me i will be veary grateful.

Thanks

3918249

Answers

  • Gaz in Oz
    Gaz in Oz Member Posts: 3,776 Bronze Crown
    edited March 2019

    You will need basic (or basiclite) AND SDK instantclient downloads. Also download sqlplus (not required but HIGHLY recommended and useful).

    It would appear you have missed the SDK. Also it looks like you have downloaded 32bit instantclient, is that correct? If it is then you should have also downloaded 32bit oci8.

    Also move your thread to here   as you will likely get more responses specific to php and OCI8.

    Top-Right -> Actions -> Move.

    3918249
  • 3918249
    3918249 Member Posts: 2
    edited March 2019

    Thanks! I will try with that!

  • vansul
    vansul Member Posts: 438
    edited April 2019

    You need to register the dll files pasted in the directory using regsvr32.exe

    After that oci will work fine.

  • Christopher Jones-Oracle
    Christopher Jones-Oracle Member Posts: 1,630 Employee
    edited May 2019

    @Gaz in Oz, since the PDO_OCI and OCI8 DLLs are prebuilt with PHP, the Instant Client SDK isn't needed.

    One thing not mentioned in this thread is the VS redistributable.  With Instant Client 11.2 the VS 2005 is needed.

Sign In or Register to comment.