Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

What is PHP based on?

Hi,

Stupid question.

I was wondering, how are high level languages like HTML, PHP, MySQL etc made? I mean, how do the compilers work? Are these languages first compiled to a lower level language such as C/C++ or are they self-sufficient and are directly compiled to machine language?

Cheers!

Update:

Oh and also languages like JavaScript and CSS.

Update 2:

@Moon Micro Systems, -_- I am a web developer, I know what PHP does, thank you. I am just curious about how it operates on the low level.

1 Answer

Relevance
  • Anonymous
    7 years ago
    Favorite Answer

    As far as I understand it, it's the job of the Browser to render (compile of sorts) these web based languages. As they are standardised, anything network enabled can use them to communicate, so it's not just browsers.

    The code isn't compiled to a lower level language exactly, it's just processed by completely separate low level software to be displayed on screen. If it was directly compiled to a lower language, it would take a lot longer, but more importantly it would be a much larger security risk.

Still have questions? Get your answers by asking now.