Uniquement valable pour Wampserver 2.5 (Pour les versions précédentes, il s'agit bien d'une copie de fichier).Citation
Mafate79
@Otomatic : je viens de regarder les 2 fichiers C:\wamp\bin\php\php5.5.12\phpForApache.ini et C:\wamp\bin\apache\apache2.4.9\bin\php.ini sur mon PC. Je suis surpris parce que tu indiques que le second fichier est censé faire 0 octets alors que chez moi il a une taille de 70,6 Ko, tout comme le fichier phpForApache.ini d’ailleurs.
82 944 ab.exe 88 064 abs.exe 36 352 apachemonitor.exe 22 528 apr_dbd_odbc-1.dll 12 288 apr_ldap-1.dll 9 192 dbmmanage.pl 82 944 htcacheclean.exe 99 328 htdbm.exe 68 096 htdigest.exe 94 720 htpasswd.exe 22 016 httpd.exe 52 224 httxt2dbm.exe <REP> iconv <SYMLINK> icudt51.dll [J:/wamp/bin/php/php5.5.13/icud51.dll] <SYMLINK> icuin51.dll [J:/wamp/bin/php/php5.5.13/icui51.dll] <SYMLINK> icuio51.dll [J:/wamp/bin/php/php5.5.13/icui51.dll] <SYMLINK> icule51.dll [J:/wamp/bin/php/php5.5.13/icul51.dll] <SYMLINK> iculx51.dll [J:/wamp/bin/php/php5.5.13/icul51.dll] <SYMLINK> icutest51.dll [J:/wamp/bin/php/php5.5.13/ictest51.dll] <SYMLINK> icutu51.dll [J:/wamp/bin/php/php5.5.13/icut51.dll] <SYMLINK> icuuc51.dll [J:/wamp/bin/php/php5.5.13/icuu51.dll] 152 576 libapr-1.dll 27 136 libapriconv-1.dll 206 848 libaprutil-1.dll <SYMLINK> libeay32.dll [J:/wamp/bin/php/php5.5.13/libay32.dll] 329 216 libhttpd.dll <SYMLINK> libsasl.dll [J:/wamp/bin/php/php5.5.13/libssl.dll] 1 031 680 libxml2.dll 46 592 logresolve.exe 130 560 lua51.dll 415 744 openssl.exe 217 600 pcre.dll <SYMLINK> php.ini [J:/wamp/bin/php/php5.5.13/phpForApche.ini] <SYMLINK> php5ts.dll [J:/wamp/bin/php/php5.5.13/php5t.dll] 62 976 rotatelogs.exe <SYMLINK> ssleay32.dll [J:/wamp/bin/php/php5.5.13/sslay32.dll] 13 824 wintty.exe 68 608 zlib1.dll
Même si le système NTFS avait, sous Windows 2000, apporté les liens symboliques sur répertoire (on parle aussi de jonctions de répertoires), il aura fallu attendre la sortie de Windows Vista pour avoir enfin la possibilité de créer des liens symboliques sur des fichiers (que l'on appelle aussi soft link sous Linux).Citation
Il y a donc un problème à ce niveau-là ? Les liens symboliques ne sont-ils pas valables que sous unix/linux ?
<?php /*-----------------------------------------------------*/ /* Informations pour la connexion à la base de données */ /*-----------------------------------------------------*/ $hote = "localhost"; $port = "1521"; $service = "XE"; $nom_du_serveur = "oci:dbname=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=".$hote."(Port=".$port."))(CONNECT_DATA=(SERVICE_NAME=".$service."))"; $nom_utilisateur = "system"; $mot_de_passe = "oracle"; $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); /*----------------------*/ /* Connexion au Serveur */ /*----------------------*/ try { $link = new PDO($nom_du_serveur,$nom_utilisateur,$mot_de_passe,$options); } catch (Exception $e) { echo "Connection à ORACLE impossible : ", $e->getMessage(); die(); } ?>
<!doctype html> <html> <head> <meta charset="ISO-8859-1" /> <title>Base de données Oracle</title> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> <link rel="stylesheet" type="text/css" href="Styles.css" /> </head> <body> <h1>Test du SGBD Oracle</h1> <h2>Table des Départements</h2> <table> <tr><th>Dept Id</th><th>Dept Name</th><th>Manager Id</th><th>Location Id</th></tr> <?php /*----------------*/ /* Initialisation */ /*----------------*/ require_once("PHP/MySql_In.php" date_default_timezone_set("Europe/Paris" setlocale(LC_MONETARY, 'fr_FR'); /*---------------------------------*/ /* Vidage de la table 'Department' */ /*---------------------------------*/ $requete_1 = "SELECT department_id, department_name, manager_id, location_id FROM hr.departments"; try { $sql = $link->query($requete_1); while ($enreg = $sql->fetch(PDO::FETCH_OBJ)) { echo "<tr><td>$enreg->DEPARTMENT_ID</td>"; echo "<td>$enreg->DEPARTMENT_NAME</td>"; echo "<td>$enreg->MANAGER_ID</td>"; echo "<td>$enreg->LOCATION_ID</td></tr>"; } $sql->closeCursor(); } catch ( Exception $e ) { echo "Une erreur est survenue dans la requète 1 : ", $e->getMessage(); die(); } ?> </table> <?php require_once("PHP/MySql_Out.php" ?> </body> </html>
C:\wamp\bin\apache\apache2.4.9\bin\icudt51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icudt51.dll C:\wamp\bin\apache\apache2.4.9\bin\icuin51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icuin51.dll C:\wamp\bin\apache\apache2.4.9\bin\icuio51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icuio51.dll C:\wamp\bin\apache\apache2.4.9\bin\icule51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icule51.dll C:\wamp\bin\apache\apache2.4.9\bin\iculx51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\iculx51.dll C:\wamp\bin\apache\apache2.4.9\bin\icutest51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icutest51.dll C:\wamp\bin\apache\apache2.4.9\bin\icutu51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icutu51.dll C:\wamp\bin\apache\apache2.4.9\bin\icuuc51.dll lien symbolique de C:\wamp\bin\php\php5.5.12\icuuc51.dll C:\wamp\bin\apache\apache2.4.9\bin\libeay32.dll lien symbolique de C:\wamp\bin\php\php5.5.12\libeay32.dll C:\wamp\bin\apache\apache2.4.9\bin\libsasl.dll lien symbolique de C:\wamp\bin\php\php5.5.12\libsasl.dll C:\wamp\bin\apache\apache2.4.9\bin\php.ini lien symbolique de C:\wamp\bin\php\php5.5.12\phpForApache.ini C:\wamp\bin\apache\apache2.4.9\bin\php5ts.dll lien symbolique de C:\wamp\bin\php\php5.5.12\php5ts.dll C:\wamp\bin\apache\apache2.4.9\bin\ssleay32.dll lien symbolique de C:\wamp\bin\php\php5.5.12\ssleay32.dll
<SYMLINK> icudt51.dll [J:/wamp/bin/php/php5.5.13/icudt51.dll] <SYMLINK> icuin51.dll [J:/wamp/bin/php/php5.5.13/icuin51.dll] <SYMLINK> icuio51.dll [J:/wamp/bin/php/php5.5.13/icuio51.dll] <SYMLINK> icule51.dll [J:/wamp/bin/php/php5.5.13/icule51.dll] <SYMLINK> iculx51.dll [J:/wamp/bin/php/php5.5.13/iculx51.dll] <SYMLINK> icutest51.dll [J:/wamp/bin/php/php5.5.13/icutest51.dll] <SYMLINK> icutu51.dll [J:/wamp/bin/php/php5.5.13/icutu51.dll] <SYMLINK> icuuc51.dll [J:/wamp/bin/php/php5.5.13/icuuc51.dll] <SYMLINK> libeay32.dll [J:/wamp/bin/php/php5.5.13/libeay32.dll] <SYMLINK> libsasl.dll [J:/wamp/bin/php/php5.5.13/libsasl.dll] <SYMLINK> php.ini [J:/wamp/bin/php/php5.5.13/phpForApache.ini] <SYMLINK> php5ts.dll [J:/wamp/bin/php/php5.5.13/php5ts.dll] <SYMLINK> ssleay32.dll [J:/wamp/bin/php/php5.5.13/ssleay32.dll]
C'est le même lien que celui donné par Skryz974 ! La version 32 bits est juste en dessous de celle de la 64 bits.Citation
Mafate79
@Artemus24 : aurais-tu un lien pour télécharger une version 32 bits de Oracle Database Express Edition 11g Release 2 ? Et sais-tu s'il est possible de l'installer sur un Windows 7 64 bits ?
Va au plus simple si cela bloque. Prends ton fichier "c:/wamp/bin/php/php5.5.1/php.ini" en faisant un "copier" et écrase la version "c:/wamp/bin/apache/apache2.4.9/bin/php.ini" en faisant un "coller".Citation
Mafate79
Mais comme tu le dis, mon problème est d'activer l'extension php_pdo_oci.dll, et pour le moment rien n’y fait !
Normalement l'extension "php_pdo_oci.dll" se trouve dans le répertoire "php/php5.5.13/ext". Donc oui, il est livré avec, non pas wampserver, mais avec php.Citation
Mafate79
J’ai aussi une question concernant ce driver php_pdo_oci : est-il fourni avec l’install de WampServer 2.5 32 bits ou nécessite-t-il la présence d’un client ou d’un InstantClient Oracle ?
OUI !Citation
Mafate79
Je précise ma pensée : admettons que je n’aie pas de client Oracle sur mon PC (ce qui n’est pas le cas), que j’active l’extension php_pdo_oci dans le menu de WampServer et que je déclenche un phpinfo(), devrais-je tout de même voir apparaître l’extension oci dans le rapport généré si tout se passait normalement ?
Je ne peux pas répondre à ta question car je ne connais pas Oracle.Citation
Mafate79
Enfin, une autre information au cas où : le responsable architecture de ma société a installé un instantclient_10_2 Oracle sur mon PC, puis un client Oracle complet plus ancien (je ne connais pas sa version). Le but était que je puisse accéder en ODBC aux bases Oracle de ma société via Microsoft Access. Il a donc d’abord installé l’instantclient_10_2, puis comme il ne s’en sortait pas, il a ajouté le client Oracle plus ancien. Maintenant j’accède effectivement aux bases Oracle via Access mais les 2 sont toujours présents aujourd’hui sur mon PC. Cela pourrait-il empêcher l’activation du driver oci dans WampServer ?