News Feed
Sections




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

Sharon Levy's Blog:
PHP Version
January 05, 2012 @ 13:20:40

Sharon Levy has a new post to her blog showing a trick she's come up with to show the PHP version information (usually found in the phpinfo) even when it's disabled.

Sometimes the most crucial, basic piece of information can seem so hard to find. For example, suppose you wanted to find out what version of PHP your remote webhost provides to shared hosting users? What would you do? [...] For development purposes it can be helpful having phpinfo() available, but on a live shared host, you may discover as I did recently that it is no longer available; your host may have disabled it.

She includes three other ways you can use to get the version of PHP you're working with:

  • If you have command line access, running "php -v"
  • Using the phpversion function (or PHP_VERSION constant)
  • Appending a certain value to the URL (only works in some cases)
0 comments voice your opinion now!
find version language method phpinfo phpversion url


blog comments powered by Disqus

Similar Posts

Stuart Herbert's Blog: Dealing With PEAR Dependency Quirks

PHP Security Blog: Suhosin 0.9.15 comes with Transparent phpinfo() Protection

SitePoint Web Blog: On Our Radar: PHP 7 Controversy and Dependency Injection

PHPClasses.org: The Secret PHP Optimization of version 5.4

PHP.net: PHP 5.6.0beta2 released


Community Events

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


community language api laravel5 opinion framework interview php7 introduction extension podcast example release voicesoftheelephpant version wordpress library unittest laravel series

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