PHPMailer\PHPMailer
PHPMailer::fileIsAccessible() protected WP 1.0
Check whether a file path is safe, accessible, and readable.
{} Это метод класса: PHPMailer{}
Хуков нет.
Возвращает
true/false.
Использование
$result = PHPMailer::fileIsAccessible( $path );
- $path(строка) (обязательный)
- A relative or absolute path to a file
Код PHPMailer::fileIsAccessible() PHPMailer::fileIsAccessible WP 5.6.2
protected static function fileIsAccessible($path)
{
$readable = file_exists($path);
//If not a UNC path (expected to start with \\), check read permission, see #2069
if (strpos($path, '\\\\') !== 0) {
$readable = $readable && is_readable($path);
}
return static::isPermittedPath($path) && $readable;
}