How to find php version and location of php.ini file

This happens with so many of us, we tries to code something in php and to do some debugging, you need to know the version of php. Now there are many ways to know this but when you are on shared server, you won’t have access to command line, so the quickest way to find which php version you are having, create a file phpinfo.php on your server with content as and upload it on server and open the file in your browser, you should see all the php related info like this

The php version will be shown at the top. using this, you can also see the path for php.ini file since many people find it difficult to find where does there php.ini file reside ? (though most often it is in /etc folder). You can also see the memory limit for php on the same page at the bottom (not shown in the image).

Related posts:

  1. No Single.php file in Wordpress Theme Most of the worpdress themes do come up with index.php...
  2. Rapidshare sharing File Uploader Information Torrentfreak is reporting that Rapidshare has shared the information of...
  3. How To Install Incompatible Firefox Extensions in your version of Firefox My biggest reason of not upgrading to firefox 3 from...
  4. Windows password file Windows password file (shortcut is PWL) is a file which...
  5. P2P file sharing We have covered many torrent articles in the past like...


Liked this post ? Subscribe to MWolk Blog via RSS Feed or via Email and receive free daily Tech and Money making tips.

1 Response to “How to find php version and location of php.ini file”

  1. Run PHP 4 and PHP 5 on Same host using php as Fast CGI

    Pingback on Mar 17, 2009 at 3:45 pm

Leave a Reply

Name Email Website URI