Results 1 to 5 of 5
-
19th Jul 2012, 05:22 AM #1OPMemberWebsite's:
0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.orgSorting links but with something more..
How from this
Code:http://hosting1.com/juog3ax898v/stefan-te_part1.rar http://hosting1.com/5907h5gdg25/stefan-te_part2.rar http://hosting2.net/file/2592012/stefan-te_part1.rar http://hosting2.net/file/2591829/stefan-te_part2.rar http://hosting3.com/files/27020766/stefan-te_part1.rar http://hosting2.com/files/70689187/stefan-te_part2.rar
PHP Code:[b]Hosting1:[/b]
[code]http://hosting1.com/juog3ax898v/stefan-te_part1.rar
http://hosting1.com/5907h5gdg25/stefan-te_part2.rar[/code]
[b]Hosting2:[/b]
[code]http://hosting2.net/file/2592012/stefan-te_part1.rar
http://hosting2.net/file/2591829/stefan-te_part2.rar[/code]
[b]Hosting3:[/b]
[code]http://hosting3.com/files/27020766/stefan-te_part1.rar
http://hosting2.com/files/70689187/stefan-te_part2.rar[/code]
Thanks for the time!stefan-te Reviewed by stefan-te on . Sorting links but with something more.. How from thishttp://hosting1.com/juog3ax898v/stefan-te_part1.rar http://hosting1.com/5907h5gdg25/stefan-te_part2.rar http://hosting2.net/file/2592012/stefan-te_part1.rar http://hosting2.net/file/2591829/stefan-te_part2.rar http://hosting3.com/files/27020766/stefan-te_part1.rar http://hosting2.com/files/70689187/stefan-te_part2.rar To get this Hosting1: Rating: 5
-
19th Jul 2012, 06:15 AM #2MemberWebsite's:
imdber.org justpaste.meWhat about using `usort` and use regex in the callback?
PHP Code:$array = explode("\n",$input);
usort($array,function($a,$b){
if(get_part_num_of_a == get_part_num_of_b) return 0;
return get_part_num_of_a<get_part_num_of_b?-1:1;
});
-
19th Jul 2012, 06:19 AM #3OPMemberWebsite's:
0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.orgI'm not that good in php mate :/ but thanks for your time, if you can make this to work would be great !
-
19th Jul 2012, 07:46 PM #4Respected Member
Try this and it need a links.txt file that contains the http lines.
PHP Code:<?php
$input = array();
// for having links in a tex file called links.txt
$handle = @fopen("links.txt", "r");
if ($handle) {
while (($buffer = fgets($handle, 4096)) !== false) {
$input[] = $buffer;
}
if (!feof($handle)) {
echo "Error: unexpected fgets() fail\n";
}
fclose($handle);
}
// Check for different link sets
$ctr = $ctr1 = 0;
while ($ctr1<count($input))
{
$pos = strrpos($input[$ctr1],'.');
if (!is_int(substr($input[$ctr1],$pos-2,1)) && substr($input[$ctr1],$pos-1,1)=='1')
{ if ($ctr>0){echo "[/code]<br>";}
$ctr++; echo "[b]Hosting$ctr:[/b]<br>[code]<br>".$input[$ctr1]."<br>";
}
else { echo $input[$ctr1]."<br>";}
$ctr1++;
}
echo "[/code]<br>";
?>
-
1st Aug 2012, 10:11 PM #5OPMemberWebsite's:
0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.orgNot giving good but it's close
Code:http://0dayblog.com/w/test.php
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] eminent backlink pyramid + 5000 profiles links + 90% Dofollw + Ping All Links - $18
By cbtblogger in forum Completed TransactionsReplies: 4Last Post: 4th Mar 2012, 03:40 PM -
How to mass replace old dead links with new links in a Wordpress blog?
By akibaba in forum File Host DiscussionReplies: 19Last Post: 16th Jun 2011, 12:48 AM -
jquery advanced sorting question
By Porsche_maniak in forum Web Development AreaReplies: 6Last Post: 13th Apr 2011, 08:04 PM -
Help sorting files from directory by latest uploaded
By Jgutz in forum Webmaster DiscussionReplies: 1Last Post: 29th Mar 2011, 07:53 PM -
Default Sorting Categories?
By Golden Falcon in forum phpBBReplies: 0Last Post: 24th Sep 2008, 11:24 PM
themaPoster - post to forums and...
Version 5.36 released. Open older version (or...