Mr. Goodie2Shoes
Active Member
Hello again,
I am using MediaFire's API to share my stuff... I just post the folder link and the files are automatically parsed... and this is the code snippet that I use (including an example):
As you can see, the files are shown perfectly, but the problem is that I want them sorted alphabetically... and I am not that good with PHP... so any help is welcomed 
I am using MediaFire's API to share my stuff... I just post the folder link and the files are automatically parsed... and this is the code snippet that I use (including an example):
PHP:
<?php
$loadxml_folder_info = simplexml_load_file('http://www.mediafire.com/api/folder/get_info.php?folder_key=wl7j50kmccaci');
$max = $loadxml_folder_info->folder_info->file_count;
$output = '';
for ($i = 0; $i < $max; $i++) {
$mf_url_link = 'http://www.mediafire.com/?'.$loadxml_folder_info->folder_info->files->file[$i]->quickkey;
$mf_file_name = $loadxml_folder_info->folder_info->files->file[$i]->filename;
$output .= '<a href="'.$mf_url_link.'" target="_blank" class="downloadBtn"><span><strong>'.$mf_file_name.'</strong></span></a><br />';
}
echo $output;
?>