Function getPackageInfo
Loads a package's information and returns a representative array. - expects the file to be a package in Packages/. - returns a error string if the package-info is invalid. - otherwise returns a basic array of id, version, filename, and similar information. - an xmlArray is available in 'xml'.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
string |
$gzfilename |
The path to the file |
array|string
|
An array of info about the file or a string indicating an error |