Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17218 программистов и 1834 робота. Сейчас ищут 1615 программистов ...

PEAR_PackageFileManager::addPlatformException

Вернуться к: PEAR_PackageFileManager

PEAR_PackageFileManager::addPlatformException

PEAR_PackageFileManager::addPlatformException() – Add an install-time platform conditional install for a file

Synopsis

require_once 'PEAR/PackageFileManager.php';

void PEAR_PackageFileManager::addPlatformException ( string $path , string $platform )

The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use an expression like (*ix|*ux|darwin). If using PEAR 1.3.2 and newer, use !windows.

This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.

Parameter

string $path

relative path of file (relative to packagedirectory option)

string $platform

platform descriptor string

Throws

throws no exceptions thrown

Note

This function can not be called statically.



Вернуться к: PEAR_PackageFileManager

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware