View Poll Results: Which is better? PHP or ASP?

Voters
14. You may not vote on this poll
  • PHP

    14 100.00%
  • ASP

    0 0%
Results 1 to 8 of 8

Thread: Installing PHP

  1. #1

    Installing PHP

    I just bought a book called Sam's teach yourself php, mysql, and apache and it included a CD that installs PHP 5.1.4, MYSQL 5.0.20, and Apache 2.0.

    I followed all instructions to install and configure MYSQL and it works fine...
    I followed all instructions to install and configure Apache and that works to...

    -BUT-

    Then I extracted all files for php 5.1.4 to "C:\Program Files\php\"

    -Success-

    I copied the file "php.ini-reccommended" (which was in "C:\Program Files\php\") to the same folder ("C:\Program Files\php\") but renamed it as "php.ini"

    -Success-

    I reconfigured a file associated with Apache called "httpd.conf" by adding a few lines in the exact location with the exact words/phrases etc.

    -Success-

    Then the book says that I'm done and I should test php to see if it works...
    To do this I had to open up a text editor such as notepad and type in the following lines:

    <?php
    phpinfo()
    ?>

    Then save as "phpinfo.php" into "C:\Program Files\Apache Group\Apache 2\htdocs"

    -Success-

    Then, using Apache, I had to open phpinfo.php by going to http://localhost/phpinfo.php

    Here's the problem:

    It was asking me to download the phpinfo.php file?!?!

    What was supposed to happen was that it would open a page that looked something like this:

    http://www.kirupa.com/web/info.php

    I even re-extracted the php files and reinstalled Apache at least three times and it still won't work!!!

    I don't know why this didn't happen so someone plz help me!!!!

  2. #2
    Do you have a www folder?
    Member #2 of the "I wont critique Timmytot's designs anymore" club.

  3. #3
    if it asks you to download the php file that normally indicates that you have installed PHP incorrectly, I have tried several times in the past and failed... I just use WAMP server or XAMPP.

    They are much easier to install and you dont need to install each one... it installs them all with a possibility to have multiple versions of the same one.

    I suggest going with one of those.
    My Photography
    Twitter

    K-Emmys-06: Best "Newbie"

  4. #4
    you exactly made errors on your installation..i just tried it this time.it work, no problem.be sure it's a "PHP file" or else it wont run.try making PHP pages..hope it can help

  5. #5
    Use better thread titles in the future "plz" ...
    Wait, what?

  6. #6

    ???xampp???

    Quote Originally Posted by strokemymouse View Post
    if it asks you to download the php file that normally indicates that you have installed PHP incorrectly, I have tried several times in the past and failed... I just use WAMP server or XAMPP.

    They are much easier to install and you dont need to install each one... it installs them all with a possibility to have multiple versions of the same one.

    I suggest going with one of those.

    When i got to xampp website, do i use installer, zip, or 7-zip?

  7. #7
    1,839
    posts
    Registered User
    Wamp is awesome!!...very easy setup

  8. #8
    You probably just have to go to httpd.conf and uncomment the LoadModule php5_module or something.
    got pwnt?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012