cracker.wizard
April 13th, 2009, 04:43 AM
Hi,
I just installed apache and php5 on my computer and everything seems to be working fine except that I want my html files to be parsed as php.
All my html files are kept in the directory /var/www, I have kept a file .htaccess in the same directory and added the following line
AddHandler x-httpd-php5 .html .htm .php .php5
but the html file is not getting parsed as php. Could someone tell what is the problem. Do i need to write something else in the .htaccess file. Or am I supposed to place the .htaccess file somewhere else.
Looking for your reply.
CW
I just installed apache and php5 on my computer and everything seems to be working fine except that I want my html files to be parsed as php.
All my html files are kept in the directory /var/www, I have kept a file .htaccess in the same directory and added the following line
AddHandler x-httpd-php5 .html .htm .php .php5
but the html file is not getting parsed as php. Could someone tell what is the problem. Do i need to write something else in the .htaccess file. Or am I supposed to place the .htaccess file somewhere else.
Looking for your reply.
CW