Why are my php tags converted to html comments?

前端 未结 12 1734
[愿得一人]
[愿得一人] 2020-12-31 19:44

A friend\'s lamp host seems to be misconfigured. I try to execute php, but it doesn\'t seem to be working.

In Chrome\'s inspect element:



        
12条回答
  •  攒了一身酷
    2020-12-31 20:22

    I just solved this same problem. You need to open your file from your WAMP, and not from your hard drive directrory.

    In your browser, put: localhost/...../yourfile.php

    Otherwise, your browser will replace all with

提交回复
热议问题