本文整理匯總了PHP中getid3_lib::ksort_recursive方法的典型用法代碼示例。如果您正苦於以下問題:PHP getid3_lib::ksort_recursive方法的具體用法?PHP getid3_lib::ksort_recursive怎麽用?PHP getid3_lib::ksort_recursive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類getid3_lib
的用法示例。
在下文中一共展示了getid3_lib::ksort_recursive方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dirname
}
getid3_lib::CopyTagsToComments($ThisFileInfo);
$listdirectory = dirname($_REQUEST['filename']);
$listdirectory = realpath($listdirectory);
// get rid of /../../ references
if (GETID3_OS_ISWINDOWS) {
// this mostly just gives a consistant look to Windows and *nix filesystems
// (windows uses \ as directory seperator, *nix uses /)
$listdirectory = str_replace('\\', '/', $listdirectory . '/');
}
if (strstr($_REQUEST['filename'], 'http://') || strstr($_REQUEST['filename'], 'ftp://')) {
echo '<i>Cannot browse remote filesystems</i><br>';
} else {
echo 'Browse: <a href="' . htmlentities($_SERVER['PHP_SELF'] . '?listdirectory=' . urlencode($listdirectory), ENT_QUOTES) . '">' . getid3_lib::iconv_fallback('ISO-8859-1', 'UTF-8', $listdirectory) . '</a><br>';
}
getid3_lib::ksort_recursive($ThisFileInfo);
echo table_var_dump($ThisFileInfo, false, $PageEncoding);
$endtime = microtime(true);
echo 'File parsed in ' . number_format($endtime - $starttime, 3) . ' seconds.<br>';
} else {
$listdirectory = isset($_REQUEST['listdirectory']) ? $_REQUEST['listdirectory'] : '.';
$listdirectory = realpath($listdirectory);
// get rid of /../../ references
$currentfulldir = $listdirectory . '/';
if (GETID3_OS_ISWINDOWS) {
// this mostly just gives a consistant look to Windows and *nix filesystems
// (windows uses \ as directory seperator, *nix uses /)
$currentfulldir = str_replace('\\', '/', $listdirectory . '/');
}
ob_start();
if ($handle = opendir($listdirectory)) {