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 fileSYNOPSISbool rpm_is_valid (string $filename)DESCRIPTIONrpm_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.PARAMETERSo $filename - The filename of the RPM file you wish to check for validity.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 |
globus-spec-creator(1) - debian |
is_link(3) - php |
is_executable(3) - php |
is_readable(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
User Guide: Posting in the Emergency Forum |
Forum Video Tutorial: How to Use Code Tags |
New Code Tags (Syntax Highlighting) |
Denial Of Service Attack Update |