I have pictures in my folder: 1.jpg, 2.jpg, 3.jpg ...
I need to know the "maximum name of the picture", what would the next call max + 1 .
I have this: =)
$d=opendir("."); while($name = readdir($d)){ if($name=="." or $name=="..") { continue; } echo $name."<br>"; }