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!

1 Answer 1

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

2
  • i need that html is parsed as php. but is it possible to set that css is parsed as css?
    – user48058
    Aug 28, 2010 at 11:32
  • You should alter DefaultType` text/plain` if your CSS get interpreted as HTML. That's usually defined in httpd.conf.
    – Lekensteyn
    Aug 28, 2010 at 19:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .