downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

rpm_version> <rpm_is_valid
[edit] Last updated: Fri, 17 May 2013

view this page in

rpm_open

(PECL rpmreader >= 0.1.0)

rpm_openOpens an RPM file

Descrierea

resource rpm_open ( string $filename )

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

Parametri

filename

The filename of the RPM file you wish to open.

Valorile întoarse

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.

Exemple

Example #1 rpm_open() example

<?php

$file 
"/path/to/file.rpm";
$rpmr rpm_open($file);

rpm_close($rpmr);

?>

Vedeți de asemenea



add a note add a note User Contributed Notes rpm_open - [1 notes]