Question:

I have a PHP file how do i use it with apache?

by  |  earlier

0 LIKES UnLike

Please help?

 Tags:

   Report

4 ANSWERS


  1. place you php file in your public_html or www folder

    Is Apache on you local machine?  If so in your browser you can do something like this

    http://localhost/myfile.php

    it should execute.  Now if your php doesn't contain any html or anything viewable by the browser you wont see anything it depends on the content of your php file.  To test it you can do this

    create a file call phpinfo.php and enter this text

    <?

    phpinfo();

    ?>

    then try it

    http://localhost/phpinfo.php

    you should see your apache php settings.


  2. Use any one softwares listed below. It will install all the necessary components for you. It includes php, mysql, apache, phpmyadmin. You don't have install each of them separatly

    http://sourceforge.net/projects/quickeas...

    http://www.wampserver.com/en/

    http://vertrigo.sourceforge.net/

    List is in the order of best i think

  3. Is apache installed in your computer?

    In any case,Go to

    http://www.expertsrt.com/tutorials/Matt/...

    And follow the instruction provided there.

    If need more help,contact me.  

  4. So you've also got Apache installed on your machine???  I run my php files via a browser.

    Barrie

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.