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 |
|---|
| superpaco(8) - debian |
| tap2rpm(1) - suse |
| ug(4) - netbsd |
| is_link(3) - php |
| is_readable(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Forum Video Tutorial: How to Use Code Tags |
| UNIX.COM 2017 Year End Summary |
| New Code Tags (Syntax Highlighting) |
| Denial Of Service Attack Update |
| Please Welcome Nicki Paul to the Moderator Team! |