Hi David,
I've been back and forth with the hosting company all weekend long and figures I'd try my luck here. Have you ever seen a problem where the webpage tries to download index.php instead of displaying it? www.whichischeaper.com is my website and has worked properly until I tried to move it. When I upload a static index.html page, it displays properly, but the dynamic page is not working properly. Any ideas as to what could be misconfigured?
the permission is set wrong (of the index file)
change the permission of the file and it wont download , but will then display as it should
Thank you David and Madison, I tore through the code and found the problem. My old host required that
AddHandler application/x-httpd-php5 php
Thanks again for the quick responses and the help.
Hi Mike,
The first thing to do in this situation is to test a simple PHP script to make sure that PHP and Apache are configured correctly. Create the following script and upload it to your server, then see if it works:
test.php
<?php
print "PHP is working!";
?>
Meanwhile, I'll have a look into what could be the cause incase this does work, but browsing to your site directly causes the download...
Cheers,
David.