1

some other programer before me made some changes on server, and now if i call html files, they are treated as php.

if html file like that have included css it is also treated as php, and it makes problems... they tryed to connect to mysql database, despite the thing that in those css are no line of php...

can you give me some advice what to check, or to set (ie. in .htaccess) to escape that?

thank you in advance!

user48058
  • 863
  • 3
  • 12
  • 20

1 Answers1

2

Look for AddType, as in AddType application/x-httpd-php .php .html.
To undo this, use AddType text/html .html. That can be done in a .htaccess file according to the Apache documentation

Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
  • i need that html is parsed as php. but is it possible to set that css is parsed as css? – user48058 Aug 28 '10 at 11:32
  • You should alter [`DefaultType`](http://httpd.apache.org/docs/current/mod/core.html#defaulttype)` text/plain` if your CSS get interpreted as HTML. That's usually defined in httpd.conf. – Lekensteyn Aug 28 '10 at 19:39