Re: Compare PHP settings of two different servers
| From: | Ben Dunlap | Date: | Thu, 23 Jul 2009 21:01:40 +0000 |
| Subject: | Re: Compare PHP settings of two different servers | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295779@lists.php.net to get a copy of this message | ||
> Thank you for replying.
>> Just diff the HTML.
> Unfortunately it is not that easy. Even if the same PHP modules are
> present, if they are written into the page in a different place, they
> show up as differences. The same goes for all the HTML tags and
> everything else, so what I end up with is a ton of text, no more
> streamlined or easy to analyze than the original output from
> phpinfo().
Do you have shell access on these servers, and are they running Linux or the
like? If so, this seems like what you'd want:
php -i | sort -u
Ben
--
Twitter: @bdunlap