I downloaded the latest copy PHP 4.0.5 yesterday and Installed it on:
Windows NT 4.0, IIS 3.0, PHP 4.0.5 CGI
There were no installation problems or errors.
When I can run a .php script from Netscape and IE by entering <IIS IP Address>/
hello.php, everything works as expected.
However, when I use the techiques shown in the PHP manual Chapter 5 : Escaping from
HTML - the PHP commands are
ignored. All I get for output in my test html file is: "Why me?!". I never see
"Hello World".
See code below.
Can you explain to me what is wrong and, better yet, how to correct the problem?
Thanks,
Mike Hagan
1Mart Corporation
2149 Roosevelt Avenue
Redwood City, CA 94061
Voice: 650-363-7700/Fax: 650-363-7703
hello.php:
--------------------------------------------START---------------------------------------------
<html><head><title>PHP Test</title></head>
<body>
<?php
if(strstr($HTTP_USER_AGENT,"MSIE")) {
?>
<center><b>You are using Internet Explorer</b></center>
<?
} else {
?>
<center><b>You are not using Internet Explorer</b></center>
<?
}
?>
<?php phpinfo()?>
</body></html>
--------------------------------------------END---------------------------------------------
index.html (Default startup file)
--------------------------------------------START---------------------------------------------
<html><head><title>PHP Test</title></head>
<body>
Why me?!
<script language="php">
echo "Hello World<P>"; ?>
</script>
</body>
</html>
--------------------------------------------END---------------------------------------------
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]