بفرماییدکد PHP:
// Settings $myDir = './htmlDir/'; $myFiles = array();
// Scan for html files, accumulate to arrayforeach (glob( $myDir. "*.html") as $filename) { $myFiles[] = $filename ; }
// Random selection mt_srand(time());
$randval = mt_rand(0, count($myFiles) - 1);
// Renderreadfile($myFiles[$randval]);





پاسخ با نقل قول