Hello all,
This must be very simple. I have few .inc files for my website. How do i prase .inc files as php so it will be displayed in the browser. Right now, i get all the code.
Madal
parsing .inc files
Re: parsing .inc files
I just added follwing lines in my httpd.conf file
AddType application/x-httpd-php .php .php3 .phtml .html .htm .inc
looks working
AddType application/x-httpd-php .php .php3 .phtml .html .htm .inc
looks working
Re: parsing .inc files
As known to me 'the only' way to make other files than .php to Parse to PHP process
is to make a [b].htaccess file[/b] with such settings only for the site that needs it (you can also rename all the files .inc to .php ?!)
so virtually anything can be passed to PHP parser but how much is going to slow down the site is another question.
Your settings made your Apache server parse every file on every site with extensions: .php .php3 .phtml .html .htm .inc parse to PHP.
Think if that's needed.
good luck
is to make a [b].htaccess file[/b] with such settings only for the site that needs it (you can also rename all the files .inc to .php ?!)
so virtually anything can be passed to PHP parser but how much is going to slow down the site is another question.
Your settings made your Apache server parse every file on every site with extensions: .php .php3 .phtml .html .htm .inc parse to PHP.
Think if that's needed.
good luck