rpm_is_valid(3) php man page | unix.com

Man Page: rpm_is_valid

Operating Environment: php

Section: 3

RPM_IS_VALID(3) 							 1							   RPM_IS_VALID(3)

rpm_is_valid - Tests a filename for validity as an RPM file

SYNOPSIS
bool rpm_is_valid (string $filename)
DESCRIPTION
rpm_is_valid(3) will test an RPM file for validity as an RPM file. This is not the same as rpm_open(3) as it only checks the file for validity but does not return a file pointer to be used by further functions.
PARAMETERS
o $filename - The filename of the RPM file you wish to check for validity.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 rpm_is_valid(3) example <?php $file = "/path/to/file.rpm"; if (rpm_is_valid($file)) { echo "File is recognized as an RPM file.<br> "; } else { echo "File is not recognized as an RPM file.<br> "; } ?> PHP Documentation Group RPM_IS_VALID(3)
Related Man Pages
scap-as-rpm(8) - centos
grid-ca-package(1) - debian
is_link(3) - php
file_exists(3) - php
is_uploaded_file(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update