“Hello, World” in PHP displays nothing

后端 未结 6 1963
我寻月下人不归
我寻月下人不归 2020-12-07 03:21

I am new to PHP, just downloaded it, and wrote a \"Hello, World!\" program:


    

    

        
6条回答
  •  被撕碎了的回忆
    2020-12-07 03:53

    You need to have a webserver that you open it through. Simply entering file:///whatever.php does not work, because the file is not parsed by PHP then.

    There are several web servers you can chose from, but my advice is Apache, the worlds most popular webserver. I have it running on my Windows XP laptop along with PHP, and it's easy to install and setup, and works great. There are lots of modules that can be installed later if you need them. It's also free, not only as in free beer, but also as in open source.

提交回复
热议问题