Git Product home page Git Product logo

Comments (3)

dougwilson avatar dougwilson commented on May 26, 2024

Hi @ryandesign! So this is a tricky one, because there is a difference between the PHP file itself (being application/x-httpd-php) and what the PHP file will actually output after being run (typically text/html). I don't think it makes sense to classify .php as text/html in this module, because this is a classification of the actual files themselves, but what they happen to output. Otherwise, .asp, .pl, and more would need to be changed to text/html in this module according to that logic.

If the question is about GitHub Pages, it's good to hear they are using this module to get their extension -> type mappings, but in reality, these are just default mappings. Ideally GitHub Pages should have a way for you to override the type of a given file extension and you could use that to set .php to map to text/html for your use-case.

from mime-db.

ryandesign avatar ryandesign commented on May 26, 2024

Ideally GitHub Pages should have a way for you to override the type of a given file extension and you could use that to set .php to map to text/html for your use-case.

I agree with you. I'll pass your recommendation on to them.

from mime-db.

dougwilson avatar dougwilson commented on May 26, 2024

Haha, I went to see if this was possible, and it lead me to https://help.github.com/articles/mime-types-on-github-pages/ :) Seems like it may not be possible just yet, but may be valuable. We're happy to get anything added, for sure! This is just a weird one is all :) I understand what you are trying to do, which is to keep your linking working, which used to be .php, and I think that makes sense.

from mime-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.