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

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31
  1.     
    #21
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    ye strstr would be even better/faster.

    just a short example, what to put in the foreach loop:

    if(strstr($string,''.$file.'')){$count.=$count+1;}

    now i don't have time, but maybe later if i will be free i will take a better look at it.
    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>

  2.     
    #22
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    try this one:

    function tastro($d,$dd){
    $n=0;
    foreach($d as $k => $v){
    if($v==$dd){$n++;}
    }
    return $n;
    }

    $a=array(10,20,10,30,40,10);
    echo tastro($a,10); //will echo '3'
    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>

  3.   Sponsored Links

  4.     
    #23
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    i will be back in about 30min - 1h. so cya then, if you won't figure it out yourself i will show you how to later for your case. bye
    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>

  5.     
    #24
    Member
    Website's:
    maxneeds.info
    It might work but how will i remove the duplicate...
    Because i will get
    SAME(2) SAME(2) OTHER(1)

    So only one SAME(2) have to stay.

  6.     
    #25
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    back already, thought i would be away longer. also...

    after this function use array_unique(); to get only 1.

    and to be sure that all will be removed, use strtolower(); before you insert it into array_unique();
    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>

  7.     
    #26
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    if you don't know how, then please post the code you have till now, so i/we can help.
    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>

  8.     
    #27
    Member
    Website's:
    maxneeds.info
    Currently fixing other issue..
    Will write after 30 mins.

  9.     
    #28
    Member
    Website's:
    maxneeds.info
    Hmm i was thinking if array_unque may do all of the work.
    But i can't translate it -
    Count every done array_unique and add 1 to some $value

  10.     
    #29
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    my code already makes unique :/ egnore his code :/

    you just have to loop the array and include the file with the file_get_contents function, and show how you wish

    the only other command you should be looking at is array_slice or array_reduce to limit the loop to 10!
    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


  11.     
    #30
    Member
    Website's:
    maxneeds.info
    litewarez can you give some piece of code how to do it...

    My current one,which is not calculating the duplicates (with no $total++ for every duplicate)

    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 

    $filenames=file_get_contents($filename);
    $filenames=explode("</b>"$filenames);
    $filenames=array_unique($filenames);
    $entry_arrayz'entry' ]  .=  $filenames[0] . '('.$total.').<br />' ;
         
    $i++; 
         if(
    $i == 10) break; 

    Result:
    Le Mans 24 Hours Race For 78th time ! (1).
    Short Of Love [2009] DVDRip (1).
    Wild Side - Speed Devil (2010) (1).
    Le Mans 24 Hours Race For 78th time ! (1).
    The Good guy (2009) DVDRip (1).
    Le Mans 24 Hours Race For 78th time ! (1).
    The Good guy (2009) DVDRip (1).
    Short Of Love [2009] DVDRip (1).
    Wild Side - Speed Devil (2010) (1).
    The Good guy (2009) DVDRip (1).


Page 3 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