News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nessa's Blog:
Using PHP to Display Version Info (I and II)
October 19, 2007 @ 11:23:00

Nessa has two posts that talk about how to use PHP to display the versions of software running on the local machine.

I've been working on this application for work that does some simple server reporting, part of which involves displaying the versions of major software running on the machines. [...] I need to be aware of this to make sure that customers are being moved to servers with compatible versions. It's also good in tracking and planning upgrades.

In the first post she recommends using the exec function in PHP to run system commands to get things like the cpanel version, python version and what perl you have installed.

Part two shows a little bit different way to get some of the same information - using the data in the /proc/version file as a single resource to get OS information.

0 comments voice your opinion now!
display version information exec proc version file display version information exec proc version file


blog comments powered by Disqus

Similar Posts

Lorna Mitchell: How to Choose PHP Hosting

Ruslan Yakushev' Blog: PHP Manager 1.1 available in Web PI

IBM developerWorks: Cook up Web sites fast w/CakePHP, Part 1: Adding related information & services

DevShed: Handling Entries for a Blogger Built with PHP

DZone.com: File Path Injection in PHP <= 5.3.6 File Update (CVE 2011-2202)


Community Events

Don't see your event here?
Let us know!


php7 laravel interview introduction community version extension api series library conference opinion podcast framework example voicesoftheelephpant release symfony2 xdebug performance

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework