Home > PHP > Function > RPM Reader > rpm_open()

rpm_open()

rpm_open - Opens an RPM file

Syntax

resource rpm_open (string $filename)

Arguments

  • filename - The filename of the RPM file you wish to open.

Description

rpm_open() will open an RPM file and will determine if the file is a valid RPM file.

Version

PHP PECL rpmreader >= 0.1.0

Return value

If the open succeeds, then rpm_open() will return a file pointer resource to the newly opened file. On error, the function will return FALSE.