Professional Documents
Culture Documents
How To Enable Oracle Connection To PHP On XAMPP
How To Enable Oracle Connection To PHP On XAMPP
(Please remove the old version of XAMPP and please delete C !"ampp #$%&'$ installin( the new version of XAMPP). *. $"tra+t InstantClient to C !instant+lient,11,* folder. 3. &pen system settin( at Start Menu > My Computer(right click on the icon) > Select Properties > A !ance "abs > #n!ironment $ariables% -. Add to ./ystem 0aria1les2 1y +li+3in( .&ew2 1utton and insert the followin( values a. 0aria1le 4ame PA56 1. 0aria1le 0alue + !instant+lient,11,*
7. Cli+3 &8 to a++ept new modifi+ation. 9. &pen C !"ampp!php!php.ini 1y usin( notepad. 7. %ind strin( o+i: and remove the ; sym1ol at the 1e(innin( of the strin( line. :. /ave and $"it. <. 'estart you laptop=p+ to a++ept new modifi+ation on "ampp.
"o Check i' Oracle connection support is loa e or not( 1. &pen we1 1rowser. *. In the address se+tion type http ==lo+alhost="ampp 3. &n+e pa(e load> sele+t phpin'o() menu from the lin3 on the left se+tion of the pa(e. -. 5ry to find strin( &CI: 1y usin( the sear+h fun+tion of your 1rowser(or 1y usin( C5'?@%). 7. If there is strin( found on &CI in your phpinfo() pa(e. 5hen you +an start +onne+tion to your ora+le data1ase.
P6P +ode to +onne+t to &ra+le 1. &pen notepad. *. 5ype followin( +ode ABphp
C+onnDo+i,+onne+t(EusernameF>FpasswordF>F17*.19.9G.7*=or+lF); If (H+onn) e+ho E%ailed to +onne+t to &ra+leF; else e+ho E/u++esfully +onne+ted with &ra+le I# J)F; BK 3. /ave and e"it the te"t files as +onne+tion.php(All %iles Cate(ory) at C !"ampp!htdo+s! -. &n+e saved> please open 1rowser and enter L'? http ==lo+alhost=+onne+tion.php 7. If you see 5e"t statin( E/u++essfully +onne+ted with &ra+le I# J) E > then you are (ood to (o.