IIS literally sends the code <?php ... ?>to the browser and then executes it.
<?php ... ?>
But only for the root file http://domain.com/index.php.
http://domain.com/index.php
All other .php files in this folder and index.php files in subfolders are executed as expected.
How can I run my root index.php code?
Update: "index.php" is the default document of my website ...
alt text http://img412.imageshack.us/img412/4130/defaultdocumentmt9.gif
: PHP 5 IIS 7. , index.php, IIS IIS 6.
index.php
, . <? ... ?>, , short_open_tag = On php.ini.
<? ... ?>
short_open_tag = On
, PHP. -, , Unicode (2- Unicode, UTF-8) . , PHP <?, , , Unicode , PHP-. ( , content-type = utf-8!). PHP ANSI UTF-8 .
<?
, , , .
, Firefox Chrome, , CSS. , CSS, HTML, CSS. CSS Chrome Firefox ! .
(/) IIS? , ? , , IIS, , , , .
Source: https://habr.com/ru/post/1698113/More articles:How to write my own confirmation dialog in javascript? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1698109/how-to-assign-a-process-to-a-core-in-windows-xp&usg=ALkJrhgXOB07YBaY_9IbTpp30zAi0Y5-jgWhy does Word freeze when I debug? - debuggingSQL table with aliases - scopeWhy is my ASP.NET AutoCompleteExtender returning undefined? - c #Testing software for a system with a fixed metal case - embeddedShould I use default (Foo), Foo.Empty or null? - constructorWhat tools are available for creating a Java process in COM servers? - javaMigrating from VS Professional to VS Team System - visual-studio-2008How to access returned AS3 URLLoader data in IOErrorEvent - actionscriptAll Articles