Viewing index.php

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

For some reason, the site I am working on, instead of showing the rendered index.php page, it shows the source instead, any reason why it would do that?

Could it be that the servers don't support PHP? Not too sure that's the reason though, the plan comes with a MySQL database.

Tested copying and pasting the source into an index.html file and it shows up fine.

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

Quote: Could it be that the servers don't support PHP

Yep or the handler isn't set for .php pages.

Busy's picture

He has: 6,151 posts

Joined: May 2001

AddType application/x-httpd-php .php .phtml .html

done the ole phpinfo() page ?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.