Check if PHP is installed on Apache or IIS Server?

后端 未结 5 1928
心在旅途
心在旅途 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:34

    Create a PHP script called php.php with the content:

    
    

    and run it from your browser. Or from command line, run:

    php -v
    

提交回复
热议问题