Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

How to Get PHP Version


If you don't know yet how you can obtain the PHP version, we will guide now by presenting a couple of approaches.

Method #1. Obtain the values from "php -info". If you have grep installed, you can simply run:

php -info | grep "PHP Version"
php -info | grep "Architecture"
php -info | grep "PHP Extension Build"

The first command returns the PHP version (ex. 5.3.6), the second returns the PHP architecture (x86 for 32 bit or x64 for 64 bit) and the last command returns the build type. You should look for TS or NTS and VC6 or VC9 on Windows.

If you do not have grep installed you can output the result into a file using the command:

php -info > phpinfo.txt

Then, just check the phpinfo.txt file created and look for PHP Version, Architecture and PHP Extension Build.

Now that you know the version, architecture and PHP Extension Build, all that remains is to download the CUBRID PHP driver that corresponds to your system and install it using the procedure below:

You will see a php_cubrid.dll file inside the archive on Windows. On Linux it is cubrid.so.

  • Copy this library to the default PHP extensions folder (usually located at C:\Program Files (x86)\PHP\ext).
  • Set your system environment. Check if the environment variable PHPRC is "C:\Program Files (x86)\PHP” and system variable path is added with “%PHPRC%” and “%PHPRC\ext”.
  • Edit php.ini (C:\Program Files (x86)\PHP\php.ini) and add the following two lines at the end of the php.ini file.

  • [PHP_CUBRID]
    extension=php_cubrid.dll
  • If you have installed CUBRID 64 bit version, but you are running PHP 32 bit version, then you must also copy the 32 bit version of cascci.dll available here to the location where PHP is installed (C:\Program Files (x86)\PHP). Only cascci.dll needs to be copied from the contents of the archive.
  • Restart your Web Server.
comments powered by Disqus
Page info
viewed 6248 times
translations en
Author
posted 2 years ago by
CUBRID
Contributors
updated last year by
View revisions
Share this article