PEAR Manual
Prev |  | Next

# PEAR_Common::infoFromTgzFile()

PEAR_Common::infoFromTgzFile() -- Returns information about a package file

## Synopsis

    require_once 'PEAR/common.php';

``array PEAR_Common::infoFromTgzFile` (string $file)`

## Description

Returns information about a package file. Expects the name of a gzipped tar file as input.

## Parameter

string `$file`

  name of .tgz file

## Return value

`array` - array with package information

## Throws

Table 27-1. Possible PEAR_Error values

Error code | Error value | Meaning | Solution
--- | --- | --- | ---
| "" |  |

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_Common::infoFromString() | Up | PEAR_Common::log()