Apache shows PHP code instead of executing it

前端 未结 26 2047
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 02:23

I have recently been trying to install PHP and Apache on my computer. After many hours, they\'re installed. I have modified the httpd.conf and php.ini files like everyone sa

26条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 03:07

    Run Xampp (apache) as administrator. In google chrome type:

    localhost//

    i.e. if folder you created is "LearnPhp", file is "chapter1.php" then type

    localhost/LearnPhp/chapter1.php

    I created this folder in the xampp folder in the htdocs folder which gets created when you download xampp.

提交回复
热议问题