September 2001
Intermediate to advanced
768 pages
32h 45m
English
void rewinddir(resource_pointer dir_stream) Rewinds the directory stream back to the start.
Returns:
Nothing
Description:
rewinddir() sets the resource pointer for a directory stream back to the start of the directory stream. One important note is that this function also causes the directory to be reread. You can use this feature to check for changes to a directory over the course of a script. See the example for details.
Version:
From versions 3.0 and 4.0
Example:
<?php $time_to_wait = 12; // For PHP3, use: $directory = '.'; $directory = getcwd (); $directory_stream = opendir ($directory); // Loop through the current entries in the directory while ... |
Read now
Unlock full access