urgent: question on the PHP installation on Window sytem

Discussion in 'PHP' started by alanX, May 16, 2006.

  1. #1
    TO everyone:
    i am a new learner to PHP. i have already installed PHP 5.1.4 installer.

    but the brower is still not able to recognize the .php file. All the code i write

    in php format in HTMl file can not be showed on web. e.g( the function i write can not work,condition sentence( if.. else.. while..) can not work).

    Can anydoay help me out of this problem. i have tried it for two days. but still fail. ~.~":confused:
     
    alanX, May 16, 2006 IP
  2. babyboy808

    babyboy808 Well-Known Member

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    You might want to consider downloading wamp - It has everything you could need, apache, php, mysql, phpmyadmin. And is very easy to setup
     
    babyboy808, May 16, 2006 IP
  3. alanX

    alanX Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank babyboy808 and
    To everyone:

    I have already installed wamp. I try to put all the file ,including the

    index.htm, .php file into the c:\wamp\www folder. and then click the

    index.html file. but nothing about php code will be showed on web.

    I don't know why? Are there any necessary steps i missed?

    Thanks
     
    alanX, May 16, 2006 IP
  4. babyboy808

    babyboy808 Well-Known Member

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #4
    I think you have to change the extensions in the php.ini file.

    But just change your html extension to .php and it will show up :)
     
    babyboy808, May 17, 2006 IP
  5. alanX

    alanX Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank you

    Now the problems are completely solved. I can go to the next stage. Thank you for your help! ^.^
     
    alanX, May 17, 2006 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm thinking that you're opening the file from the filesystem, not via the server.

    In your browser URL box, use http://localhost/index.htm and see what happens...
     
    TwistMyArm, May 17, 2006 IP