Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : RPM Header Reading Functions : rpm_is_valid

rpm_is_valid

Tests a filename for validity as an RPM file (PECL rpmreader:0.1-0.3)
bool rpm_is_valid ( string filename )

Example 2073. rpm_is_valid() example

<?php

$file
= "/path/to/file.rpm";

if (
rpm_is_valid($file)) {
   echo
"File is recognized as an RPM file.<br>\n";
}
else {
   echo
"File is not recognized as an RPM file.<br>\n";
}

?>

Change Language


Follow Navioo On Twitter
rpm_close
rpm_get_tag
rpm_is_valid
rpm_open
rpm_version
eXTReMe Tracker