I'm a newbie here trying to figure out why my simple php code is not working inside html. Files with .php extension however works fine.The page is just blank. I modified the following line
"AddType application/x-httpd-php .php" in http.conf to "AddType application/x-httpd-php .php .html"
I tried adding these lines to .htaccess file.
AddHandler x-httpd-php .html .htm
AddHandler php-script .php .html .htm
AddHandler php5-script .php .html .htm and
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html as said in most of the forums. Nothing seems to work. Please someone help me out.I'm using wamp server 2.2 and php 5.
priya667 0 Newbie Poster
simplypixie 123 Posting Pro in Training
blocblue commented: That's incorrect. +0
blocblue 238 Posting Pro in Training Featured Poster
rotten69 20 Posting Whiz
simplypixie commented: Much better explanation than mine :-) +7
blocblue 238 Posting Pro in Training Featured Poster
rotten69 20 Posting Whiz
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
blocblue 238 Posting Pro in Training Featured Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.