Wednesday, January 16, 2013

Determine Version Of PHP From Command Line

php -v
This will give you ALL the information, but if you want just the numeric version:
php -v | head -1 | cut -d ' ' -f 2

No comments:

Post a Comment