PHP lstat() ফাংশন

সংজ্ঞা ও ব্যবহার

lstat() ফাংশন ফাইল বা সিগন্যাল সিঙ্কেশনের বিষয়ে তথ্য ফিরিয়ে দেয়

সংজ্ঞা

lstat(file)
পারামিটার ব্যাখ্যা
file প্রয়োজনীয়। পরীক্ষা করতে হলে ফাইল নির্দিষ্ট করুন

ব্যাখ্যা

পাওয়া file পারামিটার দ্বারা নির্দিষ্ট ফাইল বা সিগন্যাল সিঙ্কেশনের পরিসংখ্যান তথ্য

lstat() এর ফলাফল ফরম্যাট

নম্বরকাঠিতেক সূচক সংযুক্ত কী (PHP 4.0.6 থেকে) ব্যাখ্যা
0 dev ডিভাইস নাম
1 ino নম্বর
2 mode inode প্রতিরক্ষা মোড
3 nlink সংযুক্তকরণের সংখ্যা
4 uid মালিকের ব্যবহারকারী আইডি
5 gid মালিকের গ্রুপ আইডি
6 rdev ডিভাইস ধরন, যদি inode ডিভাইস হলে
7 size ফাইল মাপাহাজ বাইট
8 atime পূর্ববর্তী পরিদর্শনের সময় (Unix সময়সূচক)
9 mtime পূর্ববর্তী সংশোধনের সময় (Unix সময়সূচক)
10 ctime পূর্ববর্তী পরিবর্তনের সময় (Unix সময়সূচক)
11 blksize Block size of file system IO
12 blocks Number of blocks occupied

Tips and Comments

Tip:This function is similar to stat() The function is the same, the only difference is that if file If the parameter is a symbolic link, then the status of the symbolic link is returned, not the status of the file pointed to by the symbolic link.

Note:The result of this function will be cached. Please use clearstatcache() to clear the cache.

Example

<?php
print_r(lstat("test.txt"));
?>

Output similar to:

Array
(
[0] => 0
[1] => 0
[2] => 33206
[3] => 1
[4] => 0
[5] => 0
[6] => 0
[7] => 92
[8] => 1141633430
[9] => 1141298003
[10] => 1138609592
[11] => -1
[12] => -1
[dev] => 0
[ino] => 0
[mode] => 33206
[nlink] => 1
[uid] => 0
[gid] => 0
[rdev] => 0
[size] => 92
[atime] => 1141633430
[mtime] => 1141298003
[ctime] => 1138609592
[blksize] => -1
[blocks] => -1
)