Question:

How come I cannot view a php file in my computer through a web browser? How do I view it?

by  |  earlier

0 LIKES UnLike

I am trying to test this php file. I have alrady edited it. Everytime I try to view it, it asks me download it. I download it, but then nothing happens. How do I view it?

 Tags:

   Report

4 ANSWERS


  1. download Xamp http://www.apachefriends.org/en/xampp-wi...

    and view it through local host in your browser


  2. php pages are not like ordinary HTML pages. They require a webserver to compile them before they can be viewed in a browser. Install IIS or Apache on your computer and put the file in the inetpub/wwwroot folder. You can then open it in a browser using localhost/filename.php

  3. PHP files cannot be viewed directly by an internet browser because they contain back-end server side code that must be processed on a.. well, a server.

    If you want to view your php files locally Apache webserver is the ideal choice. http://www.apachefriends.org/en/index.ht...  

  4. Try using this:

    http://www.nusphere.com/products/php_vie...

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.