SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 27
  1. #1
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Listing files by date added

    Right now, I have a piece of code set up to display a list of mp3's in a directory, but I can't control the order it's displayed in yet. I want the files to be listed from newest to oldest.

    PHP Code:
    <?php

    $cnt 
    1;
     
    if (
    $handle opendir('.')) {
       while (
    false !== ($file readdir($handle))) { 
           if (
    $file != "." && $file != ".." && !is_dir($file) && fnmatch("*.mp3"$file)) { 
              
    $desc strtr($file"_"" ");         
              
    $desc str_replace(".mp3"''$desc);
              
    $desc ucwords(strtolower($desc));
              if(
    fmod($cnt2) == 0$color "#E2E2E2";
              else 
    $color "#FFFFFF";

              echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>"
                    
    .round((filesize($file) / 1024), 0)." KB</td><td bgcolor='$color' align='center'>"
                    
    .date ("m.d.Y"filemtime($file))."</td></tr>";
              
              
    $cnt++; 
           } 
       }
       
    closedir($handle); 
    }

    ?>
    Is there a way to edit that code to control the list, or do I need to use a completely different approach?

    Thanks in advance for any help.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  2. #2
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to store the files in an array first before you can sort them.
    This example sorts the files in ascending order newest first:

    PHP Code:
    $dh opendir('.');
    $files = array();

    while (
    false !== ($file readdir($dh))) {
        if (
    $file == '.' || $file == '..')
            continue;

        
    $files[] = $file;
    }

    function 
    cmp($file1$file2) {
        
    $a filectime($file1);
        
    $b filectime($file2);
        if (
    $a == $b)
            return 
    0;
        
        return (
    $a $b) ? : -1;

    }

    closedir($dh);

    usort($files'cmp');

    print_r($files); 

  3. #3
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the quick response... this current code lists each file with a number next to it, but I'm not sure where to add the html, or remove the [1], [2], etc.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  4. #4
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I modified your code to display the files by their creation date. You need to iterate through the results twice once for storing them and then for the display.
    This could get slow if you have a large list of files.

    PHP Code:
    <?php
    function cmp($file1$file2) {
        
    $a filectime($file1);
        
    $b filectime($file2);
        if (
    $a == $b)
            return 
    0;
        
        return (
    $a $b) ? : -1;

    }

    $cnt 1
    $files = array();

    if (
    $handle opendir('.')) { 
       while (
    false !== ($file readdir($handle))) { 
          if (
    $file != "." && $file != ".." && !is_dir($file) && fnmatch("*.mp3"$file)) {
             
    $files[] = $file;
          }
       }
       
    closedir($handle);
    }


    usort($files'cmp');
    $n count($files);

    for (
    $i 0$i $n$i++) {
        
    $file $files[$i];
        
    $desc strtr($file"_"" ");          
        
    $desc str_replace(".mp3"''$desc); 
        
    $desc ucwords(strtolower($desc));
        
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF';
            echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>" 
                    
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>" 
                    
    .date ("m.d.Y"filemtime($file))."</td></tr>"
               
    }

    ?>

  5. #5
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks.. that works like a charm. Would it be insulting to send you a few bucks via paypal?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  6. #6
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just out of curiosity, how easy would it be to change the directory of files to retrieve mp3s from? Right now, the script has to be in the same folder, but let's say I wanted to run the script from "www.site.com/songs.php" and list songs in the "www.site.com/music/" directory.

    I tried changing:

    PHP Code:
    if ($handle opendir('.')) { 
    to

    PHP Code:
    if ($handle opendir('path/to/music')) { 
    but it list the songs with errors before and after the title. Any suggestions?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  7. #7
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Justice
    Any suggestions?
    You'll need to put in a starting point, I've used $base...
    PHP Code:
    <?php 
    function cmp($file1$file2

        
    $a filectime($file1); 
        
    $b filectime($file2); 
        if (
    $a == $b
            return 
    0
         
        return (
    $a $b) ? : -1


    $cnt 1
    $files = array(); 

    $base "C:\Documents and Settings\Lats\My Documents\My Music";
    if (
    $handle opendir($base)) 

       while (
    false !== ($file readdir($handle))) 
       { 
          if (
    $file != "." && $file != ".." && !is_dir($file) && substr($file,-4) ==".mp3"
          { 
             
    $files[] = $base."/".$file
          } 
       } 
       
    closedir($handle); 



    usort($files'cmp'); 

    $n count($files); 
    echo 
    "<table>";

    for (
    $i 0$i $n$i++) 

        
    $file $files[$i]; 
        
    $desc strtr($file"_"" ");           
        
    $desc str_replace(".mp3"''$desc); 
        
    $desc ucwords(strtolower($desc)); 
        
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF'
            echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>" 
                    
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>" 
                    
    .date ("m.d.Y"filemtime($file))."</td></tr>"

    echo 
    "</table>";
    ?>
    Don't worry about changing the fnmatch to substr bit, I just needed to do that as I don't have 4.3 on my local system.
    Lats...

  8. #8
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Lats,

    Thanks for the reply.

    This does point the script to the subdirectory, but I'm afraid it adds the directory path in the title of the file. Instead of listing the files as they're named, it adds "Foldername/" in front of each one.

    I tried using fnmatch and substr.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  9. #9
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh, that'll need a trim then.

    Try inserting the following 2 lines before $color=($cnt++...
    PHP Code:
    $short_desc explode("/",$desc);
    $desc $short_desc[sizeof($short_desc)-1]; 
    Note: I'll be expecting someone to pipe in with a 'ereg' solution to this
    Lats...

  10. #10
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again, Lats

    This removes the directory from the displayed file title, but now it changes the first letter of the title to lower-case. This is really strange, because the other upper cased letters in the title still show up upper case.

    So let's say a file is titled "Group Name - Really Cool Song"

    It gets displayed on the page as "group Name - Really Cool Song"

    very bizarre
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  11. #11
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, the line that fixes the case of the description is...
    PHP Code:
    $desc ucwords(strtolower($desc)); 
    Move that line so it comes before $color=($cnt++...
    Lats...

  12. #12
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It already is... I followed your instructions, and this is the result:
    PHP Code:
    for ($i 0$i $n$i++)
    {
       
    $file $files[$i];
       
    $desc strtr($file"_"" ");
       
    $desc str_replace(".mp3"''$desc);
       
    $desc ucwords(strtolower($desc));
       
    $short_desc explode("/",$desc); 
       
    $desc $short_desc[sizeof($short_desc)-1]; 
       
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF';
           echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>"
                   
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>"
                   
    .date ("m.d.Y"filemtime($file))."</td></tr>";

    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  13. #13
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this...
    PHP Code:
    for ($i 0$i $n$i++) 

       
    $file $files[$i]; 
       
    $desc strtr($file"_"" "); 
       
    $desc str_replace(".mp3"''$desc); 
       
    $short_desc explode("/",$desc); 
       
    $desc $short_desc[sizeof($short_desc)-1]; 
       
    $desc ucwords(strtolower($desc)); 
       
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF'
           echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>" 
                   
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>" 
                   
    .date ("m.d.Y"filemtime($file))."</td></tr>"

    Lats...

  14. #14
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This had to do with the path to the file. The ucwords functions considers this as one word and only capitalizes the drive letter.

    This is a modified version capitalizing each word in the mp3's filename. If you want to also display the path: it is stored in $path.

    PHP Code:
    for ($i 0$i $n$i++)
    {
       
    $file $files[$i];
       
    $desc strtr($file'_'' ');
       
    $desc str_replace('.mp3'''$desc);   
       
    $sep strrpos($desc'/');   
       
    $path substr($desc0$sep);
       
    $short_desc substr($desc$sep 1);
       
    $short_desc ucwords(strtolower($short_desc));
       
    #echo "Path: $path - $short_desc <br>";
       
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF';
           echo 
    "<tr><td bgcolor='$color'><a href='$file'>$short_desc</a></td><td bgcolor='$color' align='center'>"
                   
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>"
                   
    .date ("m.d.Y"filemtime($file))."</td></tr>";

    Edit:

    Too slow: I had this window open while modifying the code and didn't refresh it. Thus the difference of 10 minutes to the last post.

  15. #15
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks.. they both work.

    still learning php here... Lats' is somewhat shorter. what are the two codes doing differently?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  16. #16
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The difference between the codes is lats' use of extract and sizeof to get only the filename while my code uses strrchr and substr to do the same.
    They both give the same result although using different functions.

  17. #17
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chris82
    You need to iterate through the results twice once for storing them and then for the display.
    This could get slow if you have a large list of files.
    Does this still apply to the new code, and which code would you say is most efficient for displaying longer lists of files? Or no difference?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  18. #18
    SitePoint Wizard Chris82's Avatar
    Join Date
    Mar 2002
    Location
    Osnabrück
    Posts
    1,003
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it still applies. The first loop is the while part which stores the files. The second loop is the for-part which displays the files.

    I can't tell which code will perform faster or if there is even a noticeable difference at all. The only thing that could be changed is the repeated call to filectime once while reading the files and the other time while displaying them. But this would require a rather big change to the code.

  19. #19
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again for everyone's help on this.

    Right now, I need to list files from 3 different directories on one page. I've tried creating the script in each directory and including the php file on one page, but I get an error saying cmp can only be defined once.

    I need to display in categories, for example:

    Rock

    (file lists all mp3s in the subdirectory "rock")

    R&B

    (file lists all mp3s in the subdirectory "rnb")


    Any ideas?
    Last edited by Justice; Mar 16, 2005 at 18:42. Reason: including more details
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  20. #20
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's probably a better way to do this however, this is one way...
    PHP Code:
    <?php 
    function cmp($file1$file2
    //var_dump($file1);die;
        
    $a filectime($file1); 
        
    $b filectime($file2); 
        if (
    $a == $b
            return 
    0
          
        return (
    $a $b) ? : -1


    $cnt 1
    $files = array(); 

    $base[] = "C:\Documents and Settings\Lats\My Documents\My Music\\test1"
    $base[] = "C:\Documents and Settings\Lats\My Documents\My Music\\test2"
    $base[] = "C:\Documents and Settings\Lats\My Documents\My Music\\test3"

    for(
    $loop 0;$loop sizeof($base);$loop++)
    {
        if (
    $handle opendir($base[$loop])) 
        {
           while (
    false !== ($file readdir($handle))) 
           { 
              if (
    $file != "." && $file != ".." && !is_dir($file) && substr($file,-4) ==".mp3"
              { 
                 
    $files[] = $base[$loop]."/".$file
              } 
           } 
           
    closedir($handle); 
        } 
    }

    usort($files'cmp'); 

    $n count($files); 
    echo 
    "<table>"

    for (
    $i 0$i $n$i++) 

        
    $file $files[$i]; 
        
    $desc strtr($file"_"" ");            
        
    $desc str_replace(".mp3"''$desc); 
        
    $desc substr(strrchr($desc,"\\"),1);
        
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF'

            echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>" 
                    
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>" 
                    
    .date ("m.d.Y"filemtime($file))."</td></tr>"

    echo 
    "</table>"
    ?>
    Lats...

  21. #21
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the response Lats

    This script has two problems, unfortunately.

    1) It only displays the date and file size, and not the name or link

    2) It still lists all of the files together, in one table. I need a way I can break the list, and have:

    Category 1 (title or image)

    (table listing all the songs in a subdirectory called "category1" for example)

    Category 2 (title or image)

    (table listing all the songs in a subdirectory called "category2" for example)

    etc.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  22. #22
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found a script on hotscripts called "lister." Here's the code:

    Code:
    <? 
    $path = "$dl/"; 
    $dir_handle = @opendir($path) or die("Unable to open $path"); 
    while ($file = readdir($dir_handle)) { 
    if(!is_dir($file)) { 
    $filesize = filesize($path.$file); 
    $filesize = $filesize/1024;
    if ($filesize >= 1024)
    {
    $filesizeecho = $filesize/1024 ;
    $filesizeecho = round($filesizeecho, 1);
    $filesizeecho = "$filesizeecho Mb" ;
    }
    else 
    {
    $filesizeecho = round($filesize, 1);
    $filesizeecho = "$filesizeecho Kb" ;
    }
    //BEGIN OUTPUT
    echo "<tr><td align=left valign=middle width=310 bgcolor=#48362B><a target=_blank href=$path$file class=text>$file</a></td><td align=center valign=middle width=90 class=text bgcolor=#48362B>[ $filesizeecho ]</td></tr>" ; 
    //END OUTPUT
    } 
    } 
    closedir($dir_handle); 
    ?>
    It allows me to list several subdirectories on one page, by using includes:

    Code:
    HTML for category 1 goes here...
    
    <?
    $dl = "path/to/folder1";
    include ('lister.php') ; 
    ?>
    
    HTML for category 2 goes here...
    
    <?
    $dl = "path/to/folder2";
    include ('lister.php') ; 
    ?>
    Now this script does exactly what I need in terms of listing files from different directories, but it's a lot more limited than the other code.

    1) It doesn't display the date the file was added
    2) It doesn't order the files by date, only in alphabetical order
    3) It displays the entire file name in the hyperlink, instead of just the song name
    4) It doesn't allow for spaces, only underscores

    Now the old script did all 4 of those things, but can't display from multiple folders throughout a page. This script can display from multiple folders, but can't do those 4 things. Would it be easier to edit the lister.php file?
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  23. #23
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Justice
    1) It only displays the date and file size, and not the name or link
    It did for me

    Try this modification...
    PHP Code:
    <?php 
    function cmp($file1$file2
    //var_dump($file1);die; 
        
    $a filectime($file1); 
        
    $b filectime($file2); 
        if (
    $a == $b
            return 
    0
           
        return (
    $a $b) ? : -1
    }
    $cnt 1
    $files = array(); 

    $base[] = "C:\Documents and Settings\latimerw.DSTO\My Documents\My Music\\test1"
    $base[] = "C:\Documents and Settings\latimerw.DSTO\My Documents\My Music\\test2"
    $base[] = "C:\Documents and Settings\latimerw.DSTO\My Documents\My Music\\test3"

    for(
    $loop 0;$loop sizeof($base);$loop++) 
    {
        if (
    $handle opendir($base[$loop])) 
        { 
           while (
    false !== ($file readdir($handle))) 
           { 
              if (
    $file != "." && $file != ".." && !is_dir($file) && substr($file,-4) ==".mp3"
              { 
                 
    $files[] = $base[$loop]."/".$file
              } 
           } 
           
    closedir($handle); 
        } 


    usort($files'cmp'); 

    $n count($files); 
    echo 
    "<table>"

    for (
    $i 0$i $n$i++) 

        
    $file $files[$i]; 
        
    $desc strtr($file"_"" ");             
        
    $desc str_replace(".mp3"''$desc); 
        
    $desc substr(strrchr($desc,"\\"),1); 
        
    $color = ($cnt++ % == 0) ? '#E2E2E2' '#FFFFFF'
        
    $a "<tr><td>".substr($desc,0,strstr($desc,"\\"))."</td></tr>";

        if(
    substr($desc,0,strpos($desc,"/")) != $previous)
        {
            echo 
    "<tr><td>".substr($desc,0,strpos($desc,"/"))."</td></tr>";
            
    $previous substr($desc,0,strpos($desc,"/"));
        }
        echo 
    "<tr><td bgcolor='$color'><a href='$file'>$desc</a></td><td bgcolor='$color' align='center'>" 
            
    .round(filesize($file) / 10240)." KB</td><td bgcolor='$color' align='center'>" 
            
    .date ("m.d.Y"filemtime($file))."</td></tr>"
    }
    echo 
    "</table>"
    ?>
    For me, it comes out as such...
    Code:
    test3 
    test3/George Thorogood - Born To Be Bad 4964 KB 09.09.2003 
    test3/George Thorogood - Treat Her Right 4934 KB 09.09.2003 
    test3/George Thorogood - You Talk Too Much 6409 KB 09.09.2003 
    test2 
    test2/FatBoy Slim - Kalifornia 8284 KB 09.09.2003 
    test2/FatBoy Slim - The Rockafella Skank 9702 KB 09.09.2003 
    test2/FatBoy Slim - Praise You 7578 KB 09.09.2003 
    test2/FatBoy Slim - Right Here, Right Now 9093 KB 09.09.2003 
    test1 
    test1/Daddy Cool - Eagle Rock 5879 KB 09.09.2003 
    test1/Daddy Cool - Daddy Cool 3588 KB 09.09.2003 
    test1/Daddy Cool - Teenage Blues 5122 KB 09.09.2003
    The dates are all the same as I loaded the machine I'm on at present in one go.
    Lats...

  24. #24
    SitePoint Enthusiast Justice's Avatar
    Join Date
    Nov 2001
    Location
    New Orleans, LA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    maybe this code only works on Windows, but it's still not working at all on my server.
    "Twenty years from now you'll be more disappointed
    by the things you didn't do than by the ones you did."
    - Mark Twain

  25. #25
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll need to adjust the value of $base[].

    Something like "/path/to/music/bits"
    Lats...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •