Use of php Include in html files
I'm having some problems on my website using some php code. My site is mainly using html and php. Instead of repeating lots of lines of script at the top of every page, i'm just using the php include statement: <?php include('main.php'); ?> I have a local WAMP server and a mixture of html and php files on my site. When I run everything locally it all runs perfectly well and the 'include' statement works. However, when I upload everything to my site, which is hosted on goDaddy, the include statement only works inside .php files. If I use it inside a .html file it fails. It just doesn't include