Results 11 to 20 of 31
-
8th Jul 2010, 01:58 PM #11MemberWebsite's:
litewarez.net litewarez.com triniwarez.comSo 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
-
8th Jul 2010, 02:01 PM #12OPMemberWebsite's:
maxneeds.infoThis.. 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)
-
8th Jul 2010, 02:08 PM #13MemberWebsite's:
litewarez.net litewarez.com triniwarez.comPHP 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;
}
?>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
-
8th Jul 2010, 02:19 PM #14OPMemberWebsite's:
maxneeds.infoHow 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; }
-
8th Jul 2010, 02:24 PM #15MemberWebsite's:
litewarez.net litewarez.com triniwarez.comLook 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 answersJoin 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
-
8th Jul 2010, 02:32 PM #16OPMemberWebsite'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;
}
I must get TEST(2) TEST2(1)
And really thanks for your help so far !
-
8th Jul 2010, 02:38 PM #17MemberWebsite's:
litewarez.net litewarez.com triniwarez.comchange 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
-
8th Jul 2010, 02:42 PM #18OPMemberWebsite's:
maxneeds.infoThe 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..
-
8th Jul 2010, 03:02 PM #19MemberWebsite's:
Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.comwhy 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>
-
8th Jul 2010, 03:18 PM #20OPMemberWebsite's:
maxneeds.infoI can't think of a way using preg_match or strstr in this case.
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
themaPoster - post to forums and...
Version 5.19 released. Open older version (or...