No PHP site generates PHP errors

This error appeared:

Parse error: syntax error, unexpected T_STRING in / home / ondesign / public _html / ywamleicester.org / index.html on line 1

I think this is a PHP error. However, the site in question is an iweb custom design without PHP.

I have no idea what this can do.

+5
source share
3 answers

Maybe the server is not properly configured to handle .html files as if they contained PHP code. You can check which extensions the server is configured to use for PHP.

+6
source

html php. , , , XHTML XML, <?xml

short_open_tags on, PHP- "xml...." .

php, apache conf.

AddHandler php5-script .html

short_open_tags php.ini, vhost, htaccess, php_flag

+6

- , . - "index.exe", PHP HTML.

I don’t know about this "iweb" business, but in Apache you can trivially display any extension that PHP will parse with a single directive:

AddHandler php5-script .html
+1
source

All Articles