Activity Stream
48,167 MEMBERS
62616 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1.     
    #11
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    So explain to nme now WHAT EXACTLY is not working for you ?
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    maxneeds.info
    This.. at the bottom of the page

    I think you will see the others 10 most...
    Thats how i want to look the last one (10 most favourited)

  4.     
    #13
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    PHP Code: 
    <?php
    function RecurseFolderLister($d)
    {
        
    $BasePath realpath($d);
        
    $Storage = array();
        
        if(
    is_dir($BasePath))
        {
            
    $resource opendir($BasePath);
            while(
    false !== ($directory readdir($resource)))
            {
                if(
    is_dir($BasePath '/' $directory) && !in_array($directory,array('.','..'))) //DirCheck the TypeCheck
                
    {
                    
    $Storage array_merge($Storage,RecurseFolderLister($BasePath '/' $directory));
                }else
                {
                    if(
    is_file($BasePath '/' $directory) && substr($directory,-3) == 'txt')
                    {
                        
    //We have text file
                        
    $key $BasePath '/' $directory);
                        
                        if(!isset(
    $Storage[$key]))
                        {
                            
    $Storage[$key] = 0;
                        }
                        
    $Storage[$key]++;
                    }
                }
            }
        }
        return 
    $Storage;
    }
    $Storage RecurseFolderLister('fav');
    asort($Storage);
    $i 0;
    foreach( 
    array_reverse($Storage) as $filename => $total )
    {
         echo 
    file_get_contents($filename) . '('.$total.')'
         
    $i++;
         if(
    $i == 10) break;
    }
    ?>
    Try something like that
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  5.     
    #14
    Member
    Website's:
    maxneeds.info
    How should i add

    Code: 
    $Storage = RecurseFolderLister('fav'); 
    asort($Storage); 
    $i = 0; 
    foreach( array_reverse($Storage) as $filename => $total ) 
    { 
         echo file_get_contents($filename) . '('.$total.')' 
         $i++; 
         if($i == 10) break; 
    }
    in $entry_arrayz[ 'entry' ] ?

  6.     
    #15
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    Look Porch, im trying to help but i gave you bulk of the code, try figure it out first...

    i aint got a clue what $entry_arrayz[ 'entry' ] is for or where its used or what its sctructure table is like.

    i cant just know the answers
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  7.     
    #16
    Member
    Website's:
    maxneeds.info
    $entry_arrayz[ 'entry' ] is the field where everything will print.

    I am using now :
    PHP Code: 
              function RecurseFolderLister($d

        
    $BasePath realpath($d); 
        
    $Storage = array(); 
         
        if(
    is_dir($BasePath)) 
        { 
            
    $resource opendir($BasePath); 
            while(
    false !== ($directory readdir($resource))) 
            { 
                if(
    is_dir($BasePath '/' $directory) && !in_array($directory,array('.','..'))) //DirCheck the TypeCheck 
                

                    
    $Storage array_merge($Storage,RecurseFolderLister($BasePath '/' $directory)); 
                }else 
                { 
                    if(
    is_file($BasePath '/' $directory) && substr($directory,-3) == 'txt'
                    { 
                        
    //We have text file 
                        
    $key = ($BasePath '/' $directory); 
                         
                        if(!isset(
    $Storage[$key])) 
                        { 
                            
    $Storage[$key] = 0
                        } 
                        
    $Storage[$key]++; 
                    } 
                } 
            } 
        } 
        return 
    $Storage

    $Storage RecurseFolderLister('fav'); 
    asort($Storage); 
    $i 0
    foreach( 
    array_reverse($Storage) as $filename => $total 

       
    $entry_arrayz'entry' ]  .= file_get_contents($filename) . '('.$total.')' ;
         
    $i++; 
         if(
    $i == 10) break; 

    But if you check the page you will see TEST(1)TEST2(1)TEST(1)

    I must get TEST(2) TEST2(1)

    And really thanks for your help so far !

  8.     
    #17
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    change file_get_contents($filename) to $filename and tell me what you get :/
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  9.     
    #18
    Member
    Website's:
    maxneeds.info
    The txt files was empty so sorry for that..

    But if i change to $filename it proving my above post...

    C:\xampp\htdocs\downloads\fav\Administrator/entry100620-034822.txt(1)C:\xampp\htdocs\downloads\fav\New Folder/a.txt(1)C:\xampp\htdocs\downloads\fav\New Folder/entry100620-034822.txt(1)

    The bolded ones are indentical,but it counts them as different.. must getting the contents only to one and adding (2) because they are repeating..

  10.     
    #19
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    why don't you just use preg_match to count the duplicates?

    i know that this is slower but as the above one doesn't work, you could try this.
    LE with your pr2 site? <a href="http://tastro.org/">Tastro.org</a> or link exchance with our category page: <a href="http://tastro.org/i/hdtv">HDTV</a> | <a href="http://tastro.org/i/dvdrip">DVDRip</a> | <a href="http://tastro.org/i/r5">R5</a> | <a href="http://tastro.org/i/bdrip">BDRip</a> | <a href="http://tastro.org/i/brrip">BRRip</a>

  11.     
    #20
    Member
    Website's:
    maxneeds.info
    I can't think of a way using preg_match or strstr in this case.

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 30th Nov 2011, 03:02 AM
  2. Scan Forum Ids
    By vietnammoney in forum Webmaster Resources
    Replies: 1
    Last Post: 12th Oct 2011, 05:36 PM
  3. Boot Time Scan In Quick Heal
    By supernova in forum General Discussion
    Replies: 5
    Last Post: 17th Mar 2011, 08:07 PM
  4. Always scan files befor opeing...
    By MrPeanut420 in forum Useful Sites
    Replies: 3
    Last Post: 5th Feb 2010, 09:57 AM
  5. How to Scan & Stop Uploading Infected Files to Your Server
    By ashutariyal in forum Tutorials and Guides
    Replies: 8
    Last Post: 13th Aug 2009, 06:09 AM

Tags for this Thread

BE SOCIAL