Page 1 of 1
php code showing in html pages
Posted: Mon Jan 28, 2013 6:48 pm
by barb woolums
Just upgraded to php 5.4 and now my php code is displaying in my html pages even though I have the following directive in my .htaccess file
AddType application/x-httpd-php5 .html .htm
Any ideas?
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 7:03 pm
by requinix
Do regular .php files work?
If not then PHP isn't installed. If so then you might have to use "application/x-httpd-php" as the file type.
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 7:30 pm
by barb woolums
Hmmm .php files don't work. Guess I'll have to reinstall my wamp stack again. - Thanks
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 8:20 pm
by twinedev
what if you do php -version on the command line?
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 8:34 pm
by barb woolums
Now my .php pages are working, but still have the same issue with html paages.
tried php -version and got a syntax error
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 8:36 pm
by barb woolums
phpinfo shows correct version
Re: php code showing in html pages
Posted: Mon Jan 28, 2013 11:07 pm
by Benjamin
Are you using short tags?