Reply to Re: PHP not executing, IIS 6

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация