Results 21 to 30 of 31
-
8th Jul 2010, 03:24 PM #21MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comye 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>
-
8th Jul 2010, 03:28 PM #22MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comtry 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>
-
8th Jul 2010, 03:34 PM #23MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comi 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>
-
8th Jul 2010, 03:42 PM #24OPMemberWebsite's:
maxneeds.infoIt 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.
-
8th Jul 2010, 04:08 PM #25MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comback 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>
-
8th Jul 2010, 04:16 PM #26MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comif 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>
-
8th Jul 2010, 04:34 PM #27OPMemberWebsite's:
maxneeds.infoCurrently fixing other issue..
Will write after 30 mins.
-
8th Jul 2010, 05:38 PM #28OPMemberWebsite's:
maxneeds.infoHmm 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
-
8th Jul 2010, 08:45 PM #29MemberWebsite's:
litewarez.net litewarez.com triniwarez.commy 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
-
10th Jul 2010, 08:39 AM #30OPMemberWebsite's:
maxneeds.infolitewarez 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;
}
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).
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[PHP] Scan a Website using CURL and PHP, using Sucuri SiteCheck
By _Vick in forum Web Development AreaReplies: 0Last Post: 30th Nov 2011, 03:02 AM -
Scan Forum Ids
By vietnammoney in forum Webmaster ResourcesReplies: 1Last Post: 12th Oct 2011, 05:36 PM -
Boot Time Scan In Quick Heal
By supernova in forum General DiscussionReplies: 5Last Post: 17th Mar 2011, 08:07 PM -
Always scan files befor opeing...
By MrPeanut420 in forum Useful SitesReplies: 3Last Post: 5th Feb 2010, 09:57 AM -
How to Scan & Stop Uploading Infected Files to Your Server
By ashutariyal in forum Tutorials and GuidesReplies: 8Last Post: 13th Aug 2009, 06:09 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...