Wednesday, April 20, 2011

php on iis6 config question

I have never used php but have been asked to set up a site for some code we have inherited. I have configured php to run on iis6 sucessfully however there is one issue.

This page will work properly...

<?php phpinfo(); ?>

But this will not...

<? phpinfo(); ?>

How do I get the latter to work?

From stackoverflow
  • You need to enable short tags in your php.ini file. Its the section with --disable-short-tags in it.

    Christopher Edwards : Thanks, it was actually short_open_tag=off, but you're answer set me on the right path.

0 comments:

Post a Comment