PharFileInfo::getPharFlags()
Funkcja zwraca flagi ustawione w oczywisty dla PHAR sposób. BÄ™dzie to zawsze 0 w bieżącej implementacji.
Kompatybilność: PECL phar:1.0.0-1.2.1
Listing
<?php
try {
$p = new Phar('/path/to/my.phar', 0, 'my.phar');
$p['myfile.txt'] = 'hi';
$file = $p['myfile.txt'];
var_dump($file->getPharFlags());
} catch (Exception $e) {
echo 'Nie można otworzyć/zmodyfikować my.phar: ', $e;
}
?>
//zwróci:
int(0)
try {
$p = new Phar('/path/to/my.phar', 0, 'my.phar');
$p['myfile.txt'] = 'hi';
$file = $p['myfile.txt'];
var_dump($file->getPharFlags());
} catch (Exception $e) {
echo 'Nie można otworzyć/zmodyfikować my.phar: ', $e;
}
?>
//zwróci:
int(0)
Dodano przez: divix
Ranga: Administrator serwisu Punktów: 38473
Ranga: Administrator serwisu Punktów: 38473
Komentarze użytkowników
:: Losowe artykuły

:: Wymiana linków

Modowe inspiracje |
Android Gry i Aplikacje |
ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
Logo dla firmy |
Change Tires - Car Weather Forecast Reminder |
Zend Framework 3. Developer's Guide |
IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS |
Katalog roślin |
Programming articles of: JAVA, PHP, C++, Pyth, JavaScript and so on..