I have Windows XP SP3. When I test php in the local server, in the Denver, it does not agree with the browser, it only shows the code that I wrote.

    3 answers 3

    To begin to explore how the server language works in general and understand that it has nothing to do with the browser. If your code is displayed in the browser without processing, then this means that Apache does not know anything about the .php extension or (or) about how to handle it ...

      No The easiest way (on Windows for sure) to do everything quickly once is to install XAMPP. There will be a working mysql and running apache and everything. It weighs about 400 megs, but very quickly and no need to understand. Since you started writing without understanding how it works. There are a lot of instructions and videos online about how this is done.

      • and even better to put the OS family nix because apache was originally written under linux - Zowie
      • Who is arguing. A positive experience will appear, but once a person has already decided to write in php, let him start right now) - ivkremer
      • thanks for responding - Scorpion333

      Since you just started learning PHP, then ask the question - is the extension of the file exactly. Php? This is a fairly common mistake of beginners, php code in files with the .html format is not processed.

      But in general - about nix is ​​true, it is worth developing on it.

      • yes on any axis you can develop. One of the advantages of Apache is cross-platform! - Jagry
      • Nails can also be hammered not only with a hammer xD - Zowie
      • and what fundamentally pkhp + apache is different on the niks and window vents? - Sh4dow
      • For me, it's easier to have sex with installing Apache under Win, than installing all browsers under * nix. Or do you trust the cross-browser compatibility test to any left-wing programs? - 1232
      • one
        If you are a layout designer, then of course it will be better for you in Windows, and if you are a programmer, why should you explain all browsers? .. Besides, everything is easily and simply put on nix'ah, wine to help, oh yes, I forgot to add - <b> knowledge of linux is a big plus for any php programmer </ b>, I will not describe and tell why right now, just stupidly look at the requirements for vacancies and you will understand everything ... <br> PS: the leading position of php developed where not knowledge of nix required is probably unrealistic to find ... - Zowie