PHP Page shows up raw code

前端 未结 3 1773
星月不相逢
星月不相逢 2021-01-24 16:43

My PHP File is showing raw code in the browser when accessed through a POST request.

I\'ve created a phpinfo.php page on the localhost and whe

相关标签:
3条回答
  • 2021-01-24 17:12

    Try changing < ?php with <?php and see if that works.

    If that doesn't, make sure that Apache knows to interpret php files in the directory of your file as php scripts

    0 讨论(0)
  • 2021-01-24 17:14

    user remove space from "< ?php".

    other than this all is fine with coding i think.

    0 讨论(0)
  • 2021-01-24 17:25

    Maybe it's a daft response, but have you tried changing < ?php to <?php ? It could be that the parser isn't parsing it because it's not valid syntax ... just a wild guess!

    0 讨论(0)
提交回复
热议问题