Файловый интерфейс

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

Общие функции для работы с файлами.

Функции

ИмяОписание
file_check_directory
includes/file.inc
Проверка каталога на существование и доступность для записи.
file_check_location
includes/file.inc
Проверяет действительно ли файл существует внутри папки $directory. Следует применять для проверки реального существавания файла во избежание уязвимостей
file_check_path
includes/file.inc
Checks path to see if it is a directory, or a dir/file.
file_check_upload
includes/file.inc
Verify an uploaded file.
file_copy
includes/file.inc
Копирует файл из одного места в другое. Эта мощная функция работает как расширенная версия функции copy(). Непосредственно перед копированием проверяет правильность $source и $dest и возможность чтения/записи. Копирование файла происходить только если $source и $dest не равны.
file_create_filename
includes/file.inc
Create a full file path from a directory and filename. If a file with the specified name already exists, an alternative will be used.
file_create_path
includes/file.inc
Make sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory.
file_create_url
includes/file.inc
Формирует путь для скачивания файла.
file_delete
includes/file.inc
Удаляет файл.
file_directory_path
includes/file.inc
Определяет адрес по умолчанию для папки 'files' (папка хранения файлов, загруженных пользователями и т.п.)
file_directory_temp
includes/file.inc
Определеляет папку по умолчанию для хранения временных файлов.
file_get_mimetype
includes/file.inc
Determine an Internet Media Type, or MIME type from a filename.
file_move
includes/file.inc
Перемещает файл в новое место.
file_save_data
includes/file.inc
Save a string to the specified destination.
file_save_upload
includes/file.inc
Saves a file upload to a new location. The source file is validated as a proper upload and handled as such.
file_scan_directory
includes/file.inc
Finds all files that match a given mask in a given directory. Directories and files beginning with a period are excluded; this prevents hidden files and directories (such as SVN working directories) from being scanned.
file_transfer
includes/file.inc
Transfer file using http to client. Pipes a file through Drupal to the client.
file_upload_max_size
includes/file.inc
Определяет максимальный размер загружаемого файла из настроект PHP
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему