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?
php code showing in html pages
Moderator: General Moderators
- barb woolums
- Forum Contributor
- Posts: 134
- Joined: Sun Feb 08, 2009 9:52 pm
Re: php code showing in html pages
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.
If not then PHP isn't installed. If so then you might have to use "application/x-httpd-php" as the file type.
- barb woolums
- Forum Contributor
- Posts: 134
- Joined: Sun Feb 08, 2009 9:52 pm
Re: php code showing in html pages
Hmmm .php files don't work. Guess I'll have to reinstall my wamp stack again. - Thanks
Re: php code showing in html pages
what if you do php -version on the command line?
- barb woolums
- Forum Contributor
- Posts: 134
- Joined: Sun Feb 08, 2009 9:52 pm
Re: php code showing in html pages
Now my .php pages are working, but still have the same issue with html paages.
tried php -version and got a syntax error
tried php -version and got a syntax error
- barb woolums
- Forum Contributor
- Posts: 134
- Joined: Sun Feb 08, 2009 9:52 pm
Re: php code showing in html pages
phpinfo shows correct version
Re: php code showing in html pages
Are you using short tags?