PHP do not work

### Website URL

(please specify the URL of the site on which you are experiencing the problem)

No errors

(please share the FULL error message you see, if applicable)

Simple PHP test in file index.htm : <?php

echo “Hello World!”;
produced nothing.

(other information and details relevant to your question)

Shouldn’t it be index.php instead of index.htm?


Thanks, it works, but I expected that file with HTML and php codes must be .htm .
Again thanks for .php

Most servers by default will only execute PHP code in files with the .php extension. Files with the .htm or .html extensions are assumed to be static HTML and are not processed with PHP.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.