Check if PHP is installed on Apache or IIS Server?

后端 未结 5 1915
心在旅途
心在旅途 2020-12-10 02:35

Is there a way to check if PHP is installed on an Apache or IIS server within the PHP environment itself?

If so, how?

5条回答
  •  借酒劲吻你
    2020-12-10 03:26

    create a file (say info.php) with the following content on an accessible path and try to browse it:

    
    

    @Alfabravo is correct: don't forget to delete the file from the server after using it!

提交回复
热议问题