anastaciomelero Posted April 4, 2006 Share Posted April 4, 2006 Anyone know or have a script that I can use in which you have two files, one created April 1 and the other April 2, I want April 2 to be included first, then 1 and so on. Below is a script I have for including multiple files, but need it so it does what I want.<?php$handles=opendir("dir/");while ($java = readdir($handles)) { if(!is_dir($java) && !is_link($java)) { @include("dir/". $java); }}?>Thanks,Anastacio. Link to comment https://forums.phpfreaks.com/topic/6550-include-script-to-include-multiple-files-by-date-of-creation/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.