php man page for rpm_is_valid

Query: rpm_is_valid

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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
rpm2(3) - redhat
tap2rpm(1) - suse
is_link(3) - php
is_executable(3) - php
is_uploaded_file(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun