php issue...

Discussion in 'PHP' started by siraxi, Jun 8, 2006.

  1. #1
    A little help needed:

    I recently switched to another webhost and here, sometimes, when trying to access a .php page it pops up a window and the browser asks me whether to save it or to open, instead of just displaying the php file's content...

    Why does this happen?

    Thanks!
     
    siraxi, Jun 8, 2006 IP
  2. sgthayes

    sgthayes Peon

    Messages:
    171
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to give us some more info. Are there .php pages that don't have this ?
    This seems to be a content-type problem which means that the webserver is not correctly set up.

    If it is apache it should have the following in the httpd.conf : AddType application/x-httpd-php .php

    It could be something else though. Please give us more specific info.
     
    sgthayes, Jun 8, 2006 IP
  3. siraxi

    siraxi Peon

    Messages:
    333
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It was a webserver-related problem. A few minutes after I sent the post here, all php webpages failed to load, so I contacted the webhost and they fixed it within minutes. Now, it's working just fine.

    Thanks for your reply.
     
    siraxi, Jun 8, 2006 IP