And So I bought website hosting on godaddy (Light setup) and today I am attempting to transfer over my web project files (various .html, .php, .js files, this is an AJAX application). But after running some fundamental tests I recognize that embedded php code within an html file does not work on all.

However, basically produce a .php file and merely call phpinfo(), this works. However the next does not work (home.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html> 
<head> 
<title>Acthub</title> 
</head> 

<body> 

Hello, World!

<?php

$act = "asdf";
for ($i = 0; $i < 10; $i++) {
    echo $act; 
}

?> 

<noscript> 
<strong>
This site requires a JavaScript-enable web browser! 
</strong>
</noscript> 


</body> 
</html>  

I am confident you are not designed to see php code within the html... Therefore it is not receiving parsed whatsoever?

I have been experimenting with .htaccess to get stuff to operate but I'm not sure what I am doing this I am simply copy-pasting other individuals lines of code and wishing it really works. Here's my .htaccess presently lines said out are also examined and do not work either:

#enable directory browsing
Options +Indexes

#htaccess accessing
<Files .htaccess>
order allow,deny
deny from all
</Files>

#allow php in html
#changed handler extensions
AddType application/x-httpd-php .php .php3 .phtml .html 
#AddHandler application/x-httpd-php .html .htm

#enable cgi
AddHandler cgi-script .cgi

#set homepage
#DirectoryIndex /new/main.html
DirectoryIndex testphp.php

#treat html files as .php
AddHandler server-parsed .html 

TLDR summary - I created a web project on my small localhost utilizing a wamp server (cause I'd home windows and did not consider it) and everything labored fine, when it involves porting everything to a godaddy Light server I am getting f*cked and I'm not sure how to proceed as well as consider. Something related to .htaccess in apache...?

Thank you for any help.

They might not offer the AddHandler keyword for security reasons. Try altering your .html file extension to .php and give it a try.

Apache must be set up to see .html pages as .php pages.

You will need to add the next for you .htaccess file or perhaps your apache vhost config:

    AddType application/x-httpd-php .html

Just about any shared host will parse .html files as HTML. When they contain php, you will need to specify .php because the extension.

Side note - GoDaddy is among the worst hosts available. You'll find a variety of artificial restrictions and problems there, and incredibly little help fixing them.

This at the start of the overall game, I'd say cancel GoDaddy and change to a number that may help you out, or at best allow you to result in the changes you would like. I personally use HostGator (have for a long time), and they have been good. I am sure other here may have good options too.