|
Posted by Centurion on 04/18/06 01:41
mike.biang@gmail.com wrote:
> Hi, I'm attempting to run PHP on Microsoft IIS 6.0, and the PHP will
> not execute.
>
> For Example:
>
> test.php:
>
> <?
> phpinfo();
> ?>
>
> When I request http://localhost/test.php I get a blank page.
> When I view the source, I get:
>
> <?
> phpinfo();
> ?>
>
> Any ideas what I am doing wrong? Any resources that could guide me
> through the install process? The .php extensions are setup correctly
> (I believe) in IIS. Thanks for the help!
By default short tags are off. Try replacing "<? ... ?>" with the long tag
"<?php ... ?>". If you want short tags enabled, edit the sample php.ini
file, then copy it to c:\winnt (c:\windows ?? NFI - I don't "do" Windows
usually) and restart IIS. The install documentation is pretty thorough
IIRC (been a while since I did a PHP+IIS install).
Cheers,
James
--
This fortune is dedicated to your mother, without whose invaluable
assistance last night would never have been possible.
[Back to original message]
|