Looking for help...
I have installed PHP 5 on windows server 2003 and I am totally lost on how to set up the program to render my html code. I have added the proper paths in the env settings. Modified the PHP.ini file several times. Set up the IIS. I can not get a simple PHP coded page to run. However, I can get php to run from the command line. When I access my simple page I get the html code but not the PHP code. This is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
this is plain text <br>
<? print"this is in php";
?>
</body>
</html>
Any help would be greatly appreciated. If you know of a well written install doc for IIS 6 please let me know.
Thanks
I found the problem. I have posted this for person's that might have the same problem. My web server is set up to not allow local loopback. Also my web server is some what stealthed due to it's access is redirected from another web server, i.e a re-direct and a DNS entry for the redirect. Users accessing my web server via the re-direct will not be able to get functioning PHP web-pages due to the fact that the main web server does not know how to handle the PHP extensions. If web server is accessed directly via an IP address the PHP extensions work fine. I spent three days trying to figure this out. I installed and un-installed PHP about 10 times. (Now I see that it was working the whole time and I built the site). In the end and if all else fails, try accessing your web-site via the IP. This might give you a clue to what is going on. Especially if someone else built your web-stie. Hope this helps others.