Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

PHP not executing in html code (no replies)

$
0
0
I have been trying to resolve this for over a week. I found lots of people with similar problem and the fixes are basically adding : AddType application/x-httpd-php .html
AddType application/x-httpd-php .php
to the http.conf file.
This doesnt resolve. I can run a test file with a php extension and it works. when i embed just an echo statement within html code the php code is not executed. The files I am using have a php extension. I am not using short tags (using <?php <?>).
i have checked that wamp has loaded the php module.

I am using wamp server64 , apache 2.4.51. php7.4.26 on a windows 11 laptop

Can anyone help with this?
thanks

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>