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)