awarraic
asked on
PHP page not rendering properly
I have a php page that is not rendering properly. Just trying to test database connection and the page just shows the code as an output.
all it does is shows all the php code. I have enclosed the code input/output.
I tried to find out what's on the server but info() function didn't run either.
all it does is shows all the php code. I have enclosed the code input/output.
I tried to find out what's on the server but info() function didn't run either.
Both code behind and output is the following:
=============================================
<html>
<title>db test</title>
<?php
$link = oci_connect('test', 'test', 'myOracleServer');
if (!$link) {
die('Could not connect to Oracle: ' . oci_error());
}
echo 'Connection OK'; oci_close($link);
?>
<body>
<?php
echo info();
</body>
?>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Read this for a proper configuration of apache with php installed.
Or you could just install XAMPP to do it for you, there shouldn't be any problems with getting php to work.
http://www.apachefriends.org/en/xampp.html
If you would decide to run xampp, uninstall apache and php prior to that.
Or you could just install XAMPP to do it for you, there shouldn't be any problems with getting php to work.
http://www.apachefriends.org/en/xampp.html
If you would decide to run xampp, uninstall apache and php prior to that.
Missing link for the config:
http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml
http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml
your http://localhost/ - displays anything?
are you using WAMP or IIS?
try to display
<?php
phpinfo();
?>
are you using WAMP or IIS?
try to display
<?php
phpinfo();
?>
ASKER
PHP was not installed on apache... ODD
ASKER