RPM_VERSION(3) 1 RPM_VERSION(3)rpm_version - Returns a string representing the current version of the rpmreader extensionSYNOPSIS
string rpm_version (void )
DESCRIPTION rpm_version(3) will return the current version of the rpmreader extension.
RETURN VALUES rpm_version(3) will return a string representing the rpmreader version currently loaded in PHP.
EXAMPLES
Example #1
rpm_version(3) example
<?php
$rpmr_ver = rpm_version();
echo "$rpmr_ver<br />
";
?>
PHP Documentation Group RPM_VERSION(3)
Check Out this Related Man Page
PHPVERSION(3) 1 PHPVERSION(3)phpversion - Gets the current PHP versionSYNOPSIS
string phpversion ([string $extension])
DESCRIPTION
Returns a string containing the version of the currently running PHP parser or extension.
PARAMETERS
o $extension
- An optional extension name.
RETURN VALUES
If the optional $extension parameter is specified, phpversion(3) returns the version of that extension, or FALSE if there is no version
information associated or the extension isn't enabled.
EXAMPLES
Example #1
phpversion(3) example
<?php
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();
// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('tidy');
?>
Example #2
PHP_VERSION_ID example and usage
<?php
// PHP_VERSION_ID is available as of PHP 5.2.7, if our
// version is lower than that, then emulate it
if (!defined('PHP_VERSION_ID')) {
$version = explode('.', PHP_VERSION);
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
// PHP_VERSION_ID is defined as a number, where the higher the number
// is, the newer a PHP version is used. It's defined as used in the above
// expression:
//
// $version_id = $major_version * 10000 + $minor_version * 100 + $release_version;
//
// Now with PHP_VERSION_ID we can check for features this PHP version
// may have, this doesn't require to use version_compare() everytime
// you check if the current PHP version may not support a feature.
//
// For example, we may here define the PHP_VERSION_* constants thats
// not available in versions prior to 5.2.7
if (PHP_VERSION_ID < 50207) {
define('PHP_MAJOR_VERSION', $version[0]);
define('PHP_MINOR_VERSION', $version[1]);
define('PHP_RELEASE_VERSION', $version[2]);
// and so on, ...
}
?>
NOTES
Note
This information is also available in the predefined constant PHP_VERSION. More versioning information is available using the
PHP_VERSION_* constants.
SEE ALSO
PHP_VERSION constants, version_compare(3), phpinfo(3), phpcredits(3), php_logo_guid(3), zend_version(3).
PHP Documentation Group PHPVERSION(3)
Hi
I am receiving folowing error while running open office on redhat
please guide how to resolve
(I) x.org loaded video driver of...
(II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
(==) Depth 24 pixmap format is 32 bpp
(III) Desktop is: GNOME
(IV) openoffice.org-kde... (1 Reply)
Hi Guys,
I was searching and landed up something here only.
This is the code and I want the formatted html in email but that is not working, anybody knows the reason why?
#!/bin/sh
set -x
DATE=`date -u`
# Print beginning of webpage
function html_header
{
cat <<END
... (5 Replies)
On Solaris 10 i use pkgutil,very nice,update like "apt-get"
On HPUX i use depothelper for resolv depends
On AIX there is something similar for use rpm?
I try this but is not the same thing.
AIX Open Source Packages | FAQs / FAQs (Frequently Asked Questions) (1 Reply)
Hi All,
I am preparing a precheck script for my oracle DB installation.
I am setting an expected version value, actual version can be greater than the expected version or equal to it.
I am using the below logic to test this.
expected=2.6.32-279.el6.x86_64
received=$(uname -r)
... (5 Replies)
i am installing an application and i am getting this error message about patches
Would you like to see system information?
Operating System Information
Name: Linux
Architecture: i386
Version: 2.6.32-431.el6.x86_64
Required OS Patch Levels
Passed Name ... (4 Replies)
Hello Friends
please help me to create script to compare 2 fiile which has rpm info .
File 1:
glibc-2.12.1.149.el6_6.5.x86_64.rpm
glibc-common-2.12-1.149.el6_6.5.x86_64.rpm
File 2 :
glibc-2.12.123.el6_6.5.x86_64.rpm
glibc-common-2.12-123.el6_6.5.x86_64.rpm
To compare file1... (1 Reply)
Hi folks,
I have a problem with command rpm, I'm running the command and appears this error:
server:/tmp/python# uname -rv
2 5
server:/tmp/python# rpm -i python-2.3.4-2.aix5.1.ppc.rpm
exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors:
... (6 Replies)
Hello,
I am having a problem when i execute following script on RHEL 6.4. Same script works fine on another machine where I have same version of RHEL and KSH.
Below is the rpm and RHEL version.
ossvm12(0)> rpm -qa | grep ksh
ksh-20100621-19.el6.x86_64
ossvm12(0)> cat... (7 Replies)
In an earlier thread, I mentioned that I needed something like Netcat or Socat to create a serial > IP connection. I realized after some thought that I had downloaded the netcat tarball, unpacked it and ended up with the uncompiled program. I attempted to put it together with cc and discovered that... (10 Replies)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
==============================================================================
# ntpstat
unsynchronised
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)