1

I have this file, index.php. I FTP'd it to my web server. When I go to the page mydomain.com/index.php my browser downloads the php file instead of loading the page.

The only code in the php file is <?php echo "hello world;" ?>.

Why isn't the page loading as intended?

1
  • 4
    are you sure your web server supports php? Commented Feb 13, 2011 at 6:41

4 Answers 4

1

If you have PHP installed on the server already, you should ensure that Apache recognizes it by configuring httpd.conf properly.

Sign up to request clarification or add additional context in comments.

Comments

1

The server most likely doesn't have PHP installed.

Comments

0

This occuers becase of web server . your web server think php files like text files or pdf files . you should install a program for your web server to interpret php files.

sorry I was not logged in before :)

Comments

-1

This occuers becase of web server . your web server think php files like text files or pdf files . you should install a program for your web server to interpret php files .

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.