PHP not interpreted, showing in view source

后端 未结 6 1922
春和景丽
春和景丽 2021-01-17 10:31

I\'m hoping that this will be a useful page for getting started running php code as well as solve the current problem I\'m having some very simple code as follows:



        
6条回答
  •  离开以前
    2021-01-17 11:03

    If you are using php7 make sure you installed this module.

    sudo apt-get install libapache2-mod-php7.0
    

    Replace 7.0 with the version of php you are using.

    To find version of php, use

    php -v 
    

提交回复
热议问题