rpm_open

(PECL rpmreader >= 0.1.0)

rpm_openRPM ファイルをオープンする

説明

rpm_open ( string $filename ) : resource

rpm_open() は、RPM ファイルをオープンして それが正しい RPM 形式であるかどうかを調べます。

パラメータ

filename

オープンしたい RPM ファイルの名前。

返り値

オープンに成功すると、rpm_open() は オープンしたファイルのファイルポインタリソースを返します。 エラー時にはこの関数は FALSE を返します。

例1 rpm_open() の例

<?php

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

rpm_close($rpmr);

?>

参考

add a note add a note

User Contributed Notes 2 notes

up
1
tpe at dansupport dot dk
18 years ago
Just to list all tags as of version 0.3 beta:

RPMREADER_NAME
RPMREADER_MINIMUM
RPMREADER_VERSION
RPMREADER_RELEASE
RPMREADER_EPOCH
RPMREADER_SERIAL
RPMREADER_SUMMARY
RPMREADER_DESCRIPTION
RPMREADER_BUILDTIME
RPMREADER_BUILDHOST
RPMREADER_INSTALLTIME
RPMREADER_SIZE
RPMREADER_DISTRIBUTION
RPMREADER_VENDOR
RPMREADER_GIF
RPMREADER_XPM
RPMREADER_LICENSE
RPMREADER_COPYRIGHT
RPMREADER_PACKAGER
RPMREADER_GROUP
RPMREADER_SOURCE
RPMREADER_PATCH
RPMREADER_URL
RPMREADER_OS
RPMREADER_ARCH
RPMREADER_PREIN
RPMREADER_POSTIN
RPMREADER_PREUN
RPMREADER_POSTUN
RPMREADER_OLDFILENAMES
RPMREADER_FILESIZES
RPMREADER_FILESTATES
RPMREADER_FILEMODES
RPMREADER_FILERDEVS
RPMREADER_FILEMTIMES
RPMREADER_FILEMD5S
RPMREADER_FILELINKTOS
RPMREADER_FILEFLAGS
RPMREADER_FILEUSERNAME
RPMREADER_FILEGROUPNAME
RPMREADER_ICON
RPMREADER_SOURCERPM
RPMREADER_FILEVERIFYFLAGS
RPMREADER_ARCHIVESIZE
RPMREADER_PROVIDENAME
RPMREADER_PROVIDES
RPMREADER_REQUIREFLAGS
RPMREADER_REQUIRENAME
RPMREADER_REQUIREVERSION
RPMREADER_CONFLICTFLAGS
RPMREADER_CONFLICTNAME
RPMREADER_CONFLICTVERSION
RPMREADER_EXCLUDEARCH
RPMREADER_EXCLUDEOS
RPMREADER_EXCLUSIVEARCH
RPMREADER_EXCLUSIVEOS
RPMREADER_RPMVERSION
RPMREADER_TRIGGERSCRIPTS
RPMREADER_TRIGGERNAME
RPMREADER_TRIGGERVERSION
RPMREADER_TRIGGERFLAGS
RPMREADER_TRIGGERINDEX
RPMREADER_VERIFYSCRIPT
RPMREADER_CHANGELOGTIME
RPMREADER_CHANGELOGNAME
RPMREADER_CHANGELOGTEXT
RPMREADER_PREINPROG
RPMREADER_POSTINPROG
RPMREADER_PREUNPROG
RPMREADER_POSTUNPROG
RPMREADER_BUILDARCHS
RPMREADER_OBSOLETENAME
RPMREADER_OBSOLETES
RPMREADER_VERIFYSCRIPTPROG
RPMREADER_TRIGGERSCRIPTPROG
RPMREADER_COOKIE
RPMREADER_FILEDEVICES
RPMREADER_FILEINODES
RPMREADER_FILELANGS
RPMREADER_PREFIXES
RPMREADER_INSTPREFIXES
RPMREADER_PROVIDEFLAGS
RPMREADER_PROVIDEVERSION
RPMREADER_OBSOLETEFLAGS
RPMREADER_OBSOLETEVERSION
RPMREADER_DIRINDEXES
RPMREADER_BASENAMES
RPMREADER_DIRNAMES
RPMREADER_OPTFLAGS
RPMREADER_DISTURL
RPMREADER_PAYLOADFORMAT
RPMREADER_PAYLOADCOMPRESSOR
RPMREADER_PAYLOADFLAGS
RPMREADER_INSTALLCOLOR
RPMREADER_INSTALLTID
RPMREADER_REMOVETID
RPMREADER_RHNPLATFORM
RPMREADER_PLATFORM
RPMREADER_PATCHESNAME
RPMREADER_PATCHESFLAGS
RPMREADER_PATCHESVERSION
RPMREADER_CACHECTIME
RPMREADER_CACHEPKGPATH
RPMREADER_CACHEPKGSIZE
RPMREADER_CACHEPKGMTIME
RPMREADER_FILECOLORS
RPMREADER_FILECLASS
RPMREADER_CLASSDICT
RPMREADER_FILEDEPENDSX
RPMREADER_FILEDEPENDSN
RPMREADER_DEPENDSDICT
RPMREADER_SOURCEPKGID
RPMREADER_FILECONTEXTS
RPMREADER_FSCONTEXTS
RPMREADER_RECONTEXTS
RPMREADER_POLICIES
RPMREADER_MAXIMUM
RPMreader version
up
0
matt dot koola at gmail dot com
11 years ago
It's worth noting that a URL to an RPM package can be passed to  rpm_open().
To Top