PHP source code security on server

前端 未结 8 1777
耶瑟儿~
耶瑟儿~ 2021-01-13 11:57

I am a PHP newbie and a have a php security question. Is it possible for somebody to get the source code of a php script file running on a server with default configuration?

8条回答
  •  无人及你
    2021-01-13 12:35

    If you have this line in your apache.httpd.conf file,

    AddType application/x-httpd-php .php
    

    Apache should deal with data, rather than showing them...

    Also you need to start php services.

提交回复
热议问题