Installing xampp for php

Discussion in 'PHP' started by sridhar_91, Apr 23, 2011.

  1. #1
    I successfully installed xampp for win7 by following the same procedure as phpacademy suggested. Everything seems to be perfectly fine except the fact that my "index.php" file inside the "htdocs" folder doesn't seem to be opening at all. Am i missing something here?
    Please help me out asap.
     
    sridhar_91, Apr 23, 2011 IP
  2. ap2010

    ap2010 Guest

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you tell exactly what error you see when you open index.php? 404 error? 500 error? PHP error? The PHP code itself?
     
    ap2010, Apr 23, 2011 IP
  3. Sepehr

    Sepehr Peon

    Messages:
    568
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    does this work?
    if so then xampp's working fine. you might also want to try creating a new folder and putting your index.php there.
     
    Sepehr, Apr 23, 2011 IP
  4. sridhar_91

    sridhar_91 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @ap2010 Nope, none of it. Just cant open the file. Tells me to choose the default prog and stuff, but i dunno what to choose.

    @Sepehr Yes, its working fine. The ".php" file is the only problem though.
     
    sridhar_91, Apr 23, 2011 IP
  5. Sepehr

    Sepehr Peon

    Messages:
    568
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you're doing the whole thing wrong. you don't want to open the actual file. you need to use http://localhost/index.php to execute the file. you should only open the file(with a text-editor, i.e. notepad) to edit the code inside it!
     
    Sepehr, Apr 23, 2011 IP
  6. sridhar_91

    sridhar_91 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    sridhar_91, Apr 23, 2011 IP
  7. Sepehr

    Sepehr Peon

    Messages:
    568
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #7
    just open it with your browser.
     
    Sepehr, Apr 23, 2011 IP
  8. sridhar_91

    sridhar_91 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Open the file with my browser?
     
    sridhar_91, Apr 23, 2011 IP