comparing 2 phpinfo settings

前端 未结 5 922
萌比男神i
萌比男神i 2020-12-31 04:42

I\'d like to compare the settings I have on 2 different servers. Both are shared hosting so I don\'t think I have enough access to do it any other way but programmatically w

5条回答
  •  难免孤独
    2020-12-31 05:20

    If you just want to compare two php.ini files:

    #!/usr/bin/php
     $val ) {
      if( $val == $c2[$key] ) continue;
         echo $key.': '.$c1[$key].' // '.$c2[$key]."\n";
    }
    ?>
    

提交回复
热议问题