Hướng dẫn is_readable in php
- Hàm is_readable() dùng để kiểm tra xem tệp được chỉ định có thể đọc được hay không. (nếu được thì hàm này sẽ trả về giá trị TRUE, còn không nó sẽ trả về giá trị FALSE)
- Màn hình sẽ hiển thị là: (PHP 4, PHP 5, PHP 7, PHP 8) is_readable — Tells whether a file exists and is readable Descriptionis_readable(string Parametersfilename Path to the file. Return Values Returns Errors/Exceptions Upon failure, an ExamplesExample #1 is_readable() example
NotesKeep in mind that PHP may be accessing the file as the user id that the web server runs as (often 'nobody').
This function may return See Also
jo at durchholz dot org ¶ 16 years ago
arikan134 at gmail dot com ¶ 6 years ago
file_exists($dir)){ pgl at yoyo dot org ¶ 13 years ago
Anonymous ¶ 17 years ago
|