RPM_OPEN(3) 1 RPM_OPEN(3)
rpm_open - Opens an RPM file
SYNOPSIS
resource rpm_open (string $filename)
DESCRIPTION
rpm_open(3) will open an RPM file and will determine if the file is a valid RPM file.
PARAMETERS
o $filename
- The filename of the RPM file you wish to open.
RETURN VALUES
If the open succeeds, then rpm_open(3) will return a file pointer resource to the newly opened file. On error, the function will return
FALSE.
EXAMPLES
Example #1
rpm_open(3) example
<?php
$file = "/path/to/file.rpm";
$rpmr = rpm_open($file);
rpm_close($rpmr);
?>
SEE ALSO
rpm_close(3).
PHP Documentation Group RPM_OPEN(3)