What will happen if i change the file type

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

  1. #1
    Hey,

    I know its possible to hide the fact your server is using php by changing the file extension so instead of .php you can display .zzz using the following:

    AddType application/x-httpd-php .php .zzz

    However if i changed this to:

    AddType application/x-httpd-php .php .asp

    would this cause some errors in browsers since the .php file extension would be .asp?
     
    gamesproxy, Jun 8, 2006 IP
  2. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi

    the browser just does what it is told to do (well most of the times)

    You can use .asp and run it via php - just don't change server platform from nix / sun to something with w

    Expat
     
    expat, Jun 8, 2006 IP
  3. gamesproxy

    gamesproxy Peon

    Messages:
    270
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, exactly what i wanted to hear, rep added
     
    gamesproxy, Jun 8, 2006 IP