I have noticed that on my website index.html file that contaisn php code to connect to a mysql database does not run and it’s also possible to view the php source. Is this normal? I noticed that when I removed the code and put it in its own php file it was fine.
Share
By default, PHP code is only executed in
.phpfiles.HTML files contain raw markup and have nothing to do with PHP.
You probably want to create
index.php.