コード例 #1
0
ファイル: example.php プロジェクト: U0400004/dew1
print '</pre>';
print '<p>which is a selection against the (larger) total filelist:</p>';
print '<pre>filecount is : ' . $dirobj->filecount . '<br /><br />';
print_r($dirobj->filelist);
print '</pre>';
?>


	<h2>Example 2</h2>
	<p>Let's make the current selection (image files) even more specific by saying we only want to see files modified in the last 4 weeks.</p>
	<code>$myList = $dirobj->get_files_modified_since( ( time() - (4 * 7 * 24 * 60 * 60 ) ), true, $pathtodir, true );</code>
	<h4>Results in:</h4>

<?php 
$comparets = time() - 4 * 7 * 24 * 60 * 60;
$myList = $dirobj->get_files_modified_since($comparets, true, $pathtodir, true);
print '<pre>filecount is : ' . $dirobj->fileselection_count . '<br /><br />';
print_r($myList);
print '</pre>';
?>

	<h2>Example 3</h2>
	<p>Let's use the original list to select the most recent file.</p>
	<code>$myfile = $dirobj->get_most_recent_file( false );</code>
	<h4>Results in:</h4>

<?php 
$myfile = $dirobj->get_most_recent_file(false);
print '<pre>';
print_r($myfile);
print '</pre>';