pho isn't work

Discussion in 'PHP' started by ronen11, Jun 20, 2009.

  1. #1
    i try to execute html file with php code as following:
    http://localhost/home.html
    and there is no output i get only empty browser
    what is the reason?

    thanks
     
    ronen11, Jun 20, 2009 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    There may be many reasons lead to this.
    1) your script output is empty.
    2) webserver is not running on localhost
    3) ...
     
    stOK, Jun 20, 2009 IP
  3. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    are you sure your local server is running? what are you using?
    Try WAMP ..its free, works good. It'll show an icon when you have it running , comes with MYSQL - PHP Admin etc That'll probably solve your question.
     
    ezprint2008, Jun 20, 2009 IP
  4. hassanahmad2

    hassanahmad2 Active Member

    Messages:
    243
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Change extension of the file from .html to .php. Only then will the code execute!
     
    hassanahmad2, Jun 20, 2009 IP