<?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"; }?>