The localhost page isn’t working

MikePappa picture MikePappa · May 17, 2016 · Viewed 12.1k times · Source

I am using IIS 7 with oci8 with php and when I am writing

$connection= oci_connect('username', 'password', 'localhost/XE');

and its showing me error

The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

help me

Answer

Chintan Gor picture Chintan Gor · May 18, 2016

first of all in IIS rub your simple PHP page

if it run successfully then run this code

<?php
phpinfo();
?> 

if you are not able to see oci8 driver in this page then search Oracle Instant Client for php http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

also copy same DLL in system32 and system

then again restart IIS and then see in phpinfo() if oci8 driver display then

run this connection code

https://stackoverflow.com/a/36057262/2125924