This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
uphp:functions:findnext [2017/03/31 13:32] jeff |
uphp:functions:findnext [2021/09/13 05:57] (current) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ====Description==== | ====Description==== | ||
| - | <well size=" | + | <well size=" |
| - | <span style=" | + | <span style=" |
| - | </ | + | <span style=" |
| + | </ | ||
| Continue a search to iterate through a list of files | Continue a search to iterate through a list of files | ||
| Line 17: | Line 18: | ||
| None | None | ||
| - | ====Return | + | ====Return |
| - | Array of the next matching file containing the following keys and values: | + | < |
| ^KEY^TYPE^VALUE^ | ^KEY^TYPE^VALUE^ | ||
| - | |filename|< | + | |filename|< |
| - | |attributes|< | + | |attributes|< |
| - | |filesize|< | + | |filesize|< |
| - | |timestamp|< | + | |timestamp|< |
| ====Example==== | ====Example==== | ||
| - | **List details for all files and directories in the /logs directory:** | + | ===List details for all files and directories in the /logs directory=== |
| <code php> | <code php> | ||
| Line 44: | Line 45: | ||
| Typical output for the above example (results vary depending on the contents of the /logs directory): | Typical output for the above example (results vary depending on the contents of the /logs directory): | ||
| + | |||
| < | < | ||
| [$arr] = Array ( | [$arr] = Array ( | ||
| Line 89: | Line 91: | ||
| </ | </ | ||
| - | ====See Also==== | + | ====Also |
| [[findfirst()]] - Start searching the current folder for files matching a pattern and attributes | [[findfirst()]] - Start searching the current folder for files matching a pattern and attributes | ||
| - | [[timefromfat()]] - Convert a FAT filetime to a native | + | [[timefromfat()]] - Convert a FAT filetime to a Linux Timestamp |
| - | [[strftime()]] - Format | + | [[strftime()]] - Format |
| - | [[chdir()]] - Change | + | [[chdir()]] - Change |
| [[file_exists()]] - Check if a file exists | [[file_exists()]] - Check if a file exists | ||
| - | [[filesize()]] - Return the size of a file, or the number of unread bytes in a stream | + | [[filesize()]] - Return the size of a file, or the number of unread bytes in a stream |
| - | [[print_r()]] - Dump the contents of an array to the current output | + | [[print_r()]] - Dump the contents of an < |