Đã hỏi 4 năm, 8 tháng trước 4 years, 8 months ago
Đã xem 16k lần 16k times
Tôi có một thư mục gọi là allfiles
và có một số tệp trong thư mục này, chẳng hạn như
1212-how-to-sddk-thosd.html
3454-go-to-dlkkl-sdf.html
0987-sfda-asf-fdf-12331.html
4789-how-to-fdaaf-65536.html
Tôi sử dụng scandir
để liệt kê tất cả các tệp và bây giờ tôi cần tìm tệp bằng từ khóa, ví dụ to-dlkkl
là từ khóa và tôi sẽ nhận được tệp 3454-go-to-dlkkl-sdf.html
.
Glob dường như không hoạt động, và opendir và readdir không hoạt động tốt, bất kỳ ý tưởng nào?
Đã hỏi ngày 25 tháng 1 năm 2018 lúc 13:51Jan 25, 2018 at 13:51
1
Sử dụng chức năng Loop
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
0 và $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
1:$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
Đã trả lời ngày 25 tháng 1 năm 2018 lúc 13:54Jan 25, 2018 at 13:54
VladimirvladimirVladimir
1.3836 huy hiệu bạc11 huy hiệu đồng6 silver badges11 bronze badges
3
Tôi tự hỏi tại sao chức năng glob [] không hoạt động cho nó?
Mã dưới đây sẽ hoạt động, tôi đoán,
$existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
Đã trả lời ngày 25 tháng 1 năm 2018 lúc 14:11Jan 25, 2018 at 14:11
Bạn có thể sử dụng strstr để lấy tệp thực tế
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
Đã trả lời ngày 25 tháng 1 năm 2018 lúc 13:58Jan 25, 2018 at 13:58
Nếu bạn muốn tìm kiếm tệp cụ thể theo thư mục thì bạn có thể sử dụng
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
2.
Đã trả lời ngày 25 tháng 1 năm 2018 lúc 14:03Jan 25, 2018 at 14:03
Xe tăng xe tăng Prakashprakash tank
1.2691 Huy hiệu vàng9 Huy hiệu bạc15 Huy hiệu đồng1 gold badge9 silver badges15 bronze badges
Fatpratmatt Dot tại dot gmail dot com ¶
14 năm trước — List files and directories inside the specified path
Simon Dot Riget tại Gmail Dot Com ¶
6 năm trước[string
3, int $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
4 = $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
5, ?resource $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
6 =
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
7]: array|false$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
telefoontoestel59 tại hotmail dot com
7 năm trướcTom ¶
Patrick ¶2bbasic tại gmail dot com
1, then the sort order is alphabetical in descending order. If it is set to
$existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
2 then the result is unsorted. $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
$existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
3Để biết mô tả về tham số
$existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
3, hãy tham khảo phần luồng của hướng dẫn.Trả về giá trị
Trả về một mảng tên tệp thành công, hoặc
$existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
5 khi thất bại. Nếu $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
8 không phải là một thư mục, thì boolean $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
5 được trả về và lỗi của cấp $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
8 được tạo ra.array of filenames on success, or $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
5 on failure. If $files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
8 is not a directory,
then boolean $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
5 is returned, and an error of level $existing_dir = getcwd[];
// path to dir
chdir[ '/var/www/allfiles/' ];
foreach[ glob[ '*to-dlkkl*.html' ] as $html_file ] {
echo $html_file . '
';
}
chdir[ $existing_dir ];
8 is generated. Thay đổi
8.0.0 | 3 bây giờ là không thể. |
Ví dụ
Ví dụ #1 ví dụ scandir [] đơn giảnscandir[] example
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
0Ví dụ trên sẽ xuất ra một cái gì đó tương tự như:
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]
Ghi chú
Mẹo
Một URL có thể được sử dụng như một tên tệp với chức năng này nếu các giấy gói fopen đã được bật. Xem fopen [] để biết thêm chi tiết về cách chỉ định tên tệp. Xem các giao thức và trình bao bọc được hỗ trợ để biết các liên kết đến thông tin về những khả năng mà các trình bao bọc khác nhau có, ghi chú về việc sử dụng của chúng và thông tin về bất kỳ biến được xác định trước mà họ có thể cung cấp.fopen[] for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
Xem thêm
- opendir [] - tay cầm thư mục mở
- readDir [] - Đọc mục nhập từ tay cầm thư mục
- glob [] - Tìm tên đường dẫn khớp với một mẫu
- is_dir [] - cho biết tên tệp có phải là thư mục
- Sắp xếp [] - Sắp xếp một mảng theo thứ tự tăng dần
Dwieeb tại gmail dot com ¶
10 năm trước
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
1$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
2$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3CoolBikram0 tại Gmail Dot Com ¶ ¶
10 tháng trước
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
4$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
5$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
6mmda dot nl tại gmail dot com ¶ ¶
9 năm trước
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
7$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
8$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
9
0Thông tin tại Ghi chú chấm không ¶ ¶
4 năm trước
1EEP2004 tại UKR DOT Net ¶
8 năm trước
2Kodlee tại Kodleeshare Dot Net ¶
10 năm trước
3
4$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3CoolBikram0 tại Gmail Dot Com ¶ ¶
8 năm trước
6
7
8
9Kodlee tại Kodleeshare Dot Net ¶
gambit_642 tại hotmaildotcom ¶
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]0
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]1
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]2
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3csaba tại alum dot mit dot edu ¶ ¶
gambit_642 tại hotmaildotcom ¶
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]4
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]5
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]6
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]7
csaba tại alum dot mit dot edu ¶ ¶
gambit_642 tại hotmaildotcom ¶
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]8
Array [ [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir ] Array [ [0] => somedir [1] => foo.txt [2] => bar.php [3] => .. [4] => . ]9
allfiles
0
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3csaba tại alum dot mit dot edu ¶ ¶
17 năm trước
allfiles
2
allfiles
3
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3Pawel Dlugosz ¶ ¶
10 năm trước
allfiles
5
allfiles
6
allfiles
7
allfiles
8
allfiles
9
scandir
0
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3CoolBikram0 tại Gmail Dot Com ¶ ¶
10 năm trước
scandir
2
CoolBikram0 tại Gmail Dot Com ¶ ¶
10 tháng trước
scandir
3
scandir
4
scandir
5
scandir
6
scandir
7
scandir
8
scandir
9
to-dlkkl
0
to-dlkkl
1
to-dlkkl
2
to-dlkkl
3
to-dlkkl
4mmda dot nl tại gmail dot com ¶ ¶
17 năm trước
to-dlkkl
5
to-dlkkl
6
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3Pawel Dlugosz ¶ ¶
Stan P. van de Burgt ¶
to-dlkkl
8
to-dlkkl
9
3454-go-to-dlkkl-sdf.html
0
3454-go-to-dlkkl-sdf.html
1
3454-go-to-dlkkl-sdf.html
2
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3Artmanniako tại Gmail Dot Com ¶ ¶
3 năm trước
3454-go-to-dlkkl-sdf.html
4
3454-go-to-dlkkl-sdf.html
5
3454-go-to-dlkkl-sdf.html
6
3454-go-to-dlkkl-sdf.html
7Fazle Dot Elahee tại Gmail Dot Com ¶ ¶
Carneiro tại Isharelife dot com dot br ¶
3454-go-to-dlkkl-sdf.html
8
3454-go-to-dlkkl-sdf.html
9
$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3phpdotnet tại lavavortex dot com ¶ ¶
Carneiro tại Isharelife dot com dot br ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
01$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
02$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
03$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
04phpdotnet tại lavavortex dot com ¶ ¶
8 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
05$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
06$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
07$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
08$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
09$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
10$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
11$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
12$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3Kodlee tại Kodleeshare Dot Net ¶
10 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
14CoolBikram0 tại Gmail Dot Com ¶ ¶
10 tháng trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
15$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
16$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3mmda dot nl tại gmail dot com ¶ ¶
9 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
18$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
19$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
20$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3Thông tin tại Ghi chú chấm không ¶ ¶
10 tháng trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
22$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
23$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
24$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3mmda dot nl tại gmail dot com ¶ ¶
gambit_642 tại hotmaildotcom ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
26$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
27$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
28$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
29$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3csaba tại alum dot mit dot edu ¶ ¶
10 tháng trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
31mmda dot nl tại gmail dot com ¶ ¶
9 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
32$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
33$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
34$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
35Thông tin tại Ghi chú chấm không ¶ ¶
9 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
36Thông tin tại Ghi chú chấm không ¶ ¶
4 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
37$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
38$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3EEP2004 tại UKR DOT Net ¶
10 tháng trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
40$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
41$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
42$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
43$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3mmda dot nl tại gmail dot com ¶ ¶
Stan P. van de Burgt ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
45$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
46$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
47$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
48Artmanniako tại Gmail Dot Com ¶ ¶
10 tháng trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
49$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
50$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
51$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
52$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
53$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3mmda dot nl tại gmail dot com ¶ ¶
4 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
55$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
56$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
57$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3EEP2004 tại UKR DOT Net ¶
Stan P. van de Burgt ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
59$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
60$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
61$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
62Kodlee tại Kodleeshare Dot Net ¶
gambit_642 tại hotmaildotcom ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
63$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
64$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3csaba tại alum dot mit dot edu ¶ ¶
4 năm trước
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
66EEP2004 tại UKR DOT Net ¶
gambit_642 tại hotmaildotcom ¶
$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
67$files = scandir['allfiles'];
foreach [$files as $file] {
if [strpos['to-dlkkl', $file] !== false] {
//file found
}
}
68$allfiles = scandir['./'];
foreach [$allfiles as $file] {
if [strstr[$file, 'to-dlkkl']] {
echo "file found"; //do what you want
}
}
3