Ultimate fourshared leecher!

Started on the old forum in February 2012 · view the original in the archive · old links redirect here

#4shared-grabber

132 replies · 27,019 views · started 14 years ago · 1 min read

TL;DR · summary of 132 replies
  • ukitero needs to make the mobile version of the site and adjust the CSS width.
  • The issue with artist.php sometimes not showing downloadable results may be resolved by removing or disabling it, as it is an advanced feature unrelated to the 4shared grabber.
  • A new zip file has been shared that replaces via_google.php, which should show more search results for mp3 files.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

35 participants
ukitero Junior · 14 posts #21

thanks sfreak. .i will wait for the update.

Added after 12 minutes:

also the artist.php sometimes it's showing results. but the results can't be download. It says "No search results were found, please try with a different keyword..." .When i click the song name result. .but the other songs working fine. .

softwarefreak Senior · 349 posts #22

ukitero wrote: thanks sfreak. .i will wait for the update.

Added after 12 minutes:

also the artist.php sometimes it's showing results. but the results can't be download. It says "No search results were found, please try with a different keyword..." .When i click the song name result. .but the other songs working fine. .

artist.php is made with a music API and is not connected to 4shared grabber in anyway, it's just an advanced feature so dat visitors thinks your site is useful, you can remove & let ppl search directly, hope you've understood..

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

smart Newbie · 9 posts #23

thanks softwarefreak ! nice script . bro can you please change swf mp3 player with any other mini size or square play button swf mp3 player ? it will be good for mobile default browser .

softwarefreak Senior · 349 posts #24

ukitero, thanks, I found something interesting which will show more results for mp3 search, Google was omitting some search results... download this zip file & replace via_google.php with the new one 🙂 before replacing, search this "fred panopio"... it will show "1 file found" w/ the new via_google.php it will be 24 😉

Added after 3 minutes:

smart wrote: thanks softwarefreak ! nice script . bro can you please change swf mp3 player with any other mini size or square play button swf mp3 player ? it will be good for mobile default browser .

You can change it yourself,just html code in flash.php 🙂 & download players from http://www.alsacreations.fr/dewplayer

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Attachments: via_google.zip
softwarefreak Senior · 349 posts #26

ranjuck wrote: This mp3 search is not showing results for query 'karimbana': dmax.in/via_google.php?q=karimbana&ext=mp3 But, lagu mp3 is showing results: dmax.in/mp3search/index.php?search=karimbana&source=4shared Is it possible to fix it?

Already fixed... Search results for - karimbana

wow,coool! you've removed the lagu.mobi copyright & my "powered by" links too, great work, no more help,it's your script,you know how to handle it 😉

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

softwarefreak Senior · 349 posts #28

Macneth wrote: Search results for - fred panopio

still 1 file found...but in lagu theres a lot of results..

Fred panopio - Free Mobile Mp3 Downloads

dats cached result which is saving the resource & CPU usage, the cache is stored for 10000 secs by default & then again updated 🙂 try ds Search results for - fred panopio

Added after 3 minutes:

Macneth wrote: Thanks..but how to do that? Im new on php coding..:)

just replace the new via_google.php w/ the old one,dat's all you have to do 🙂 & thanks, I don't want my nick on your site,just the script name without link,cuz i dont want you to lose visitors

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Macneth Junior · 15 posts #29

softwarefreak wrote: dats cached result which is saving the resource & CPU usage, the cache is stored for 10000 secs by default & then again updated 🙂 try ds Search results for - fred panopio

Added after 3 minutes:

just replace the new via_google.php w/ the old one,dat's all you have to do 🙂 & thanks, I don't want my nick on your site,just the script name without link,cuz i dont want you to lose visitors

thats alright this is now my new hobby...:) doing something when im free..by the way seems like the cache size increases too much...in 3 days my cache size is about 40mb..

softwarefreak Senior · 349 posts #30

Macneth wrote: thats alright this is now my new hobby...:) doing something when im free..by the way seems like the cache size increases too much...in 3 days my cache size is about 40mb..

Size will not harm your server,but if you disable the feature,multiple curl requests will consume huge resource & CPU usage, which will suspend your free/shared hosting account,cache files are just text,so need not to worry

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

smart Newbie · 9 posts #31

dats cached result which is saving the resource & CPU usage, the cache is stored for 10000 secs by default & then again updated 🙂

Bro can teach me how to add cache option in any simple grabber script ?

softwarefreak Senior · 349 posts #32

smart wrote: Bro can teach me how to add cache option in any simple grabber script ?

Hi bro, follow this,it's an easy thing... let's say you're trying to grab a webpage, w/ the below code

$url = "http://example.com";
$file = file_get_content($url);
echo $file; //simple enough to understand

Now, if 10 users requests the above script url, let's say http://some.com/grab.php...the function file_get_contents will have fetch the same page 10 times,which is obviously wastage of resource & CPU. But you can make use of a cool php function ob_start(); which will start output buffering

/*
create a variable for the file dat will be used to show cached content
*/
$cache_filename = 'cache/'.md5($_SERVER['REQUEST_URI']);
/*
$_SERVER['REQUEST_URI'] will make an unique identity for each url w/ query strings
i.e http://some.com/file.php?foo=bar&bar=foo
*/
/*
Let's make a function,to overcome repeating codes in every page
*/
function load_cache($cache_time, $cache_filename)
{
/*check if,the cache file already exists, & the filesize is more than the given value
why filesize?
Incase the function you're using to fetch the page(may be file_get_contents/cURL or something else) returns false(i.e the requested server is unresponsive),the cache file will remain blank,
& if you dont use the filesize param, the blank page will be shown to the visitors...
*/
   if (file_exists($cache_filename) && filesize($cache_filename) > 10) //
 {
// the time the file was created
$cache_created = filemtime($cache_filename);
}
   else
 {
// if the file was not found
 $cache_created = 0;
}
   if ((time() - $cache_created) < $cache_time) 
 {  
	return TRUE;
}
else
{
	return FALSE;
}
//now use the function

if(load_cache(1000, $cache_filename))
{
//the first param,i.e cache time,1000 here,cuz i wana update the cache every 1000 secs 
//if it returns true,it'll mean the file exist, &  we can show it to the visitor
require_once $cache_filename; 
}
else
{

$url = "http://example.com";
$file = file_get_content($url);
//start output_buffering, which will prevent outputting directly to the browser
ob_start();
echo $file;
/*
//you can put anything here which you want to cache
echo "blah blah";
*/
$cached_content = ob_get_contents(); // this will save the buffer in a variable,
//if you don't understand,it's same like collecting rainwater in a tub :D
//Now put the cached contents in a file which will be served to the next user,requesting the same URL
file_put_contents($cache_filename, $cached_content);
//flush the current buffer output  , you may also use the buffer  dat you save i.e $cached_content
ob_end_flush();
}

Now w/o the comments,clean example

$cache_filename = 'cache/'.md5($_SERVER['REQUEST_URI']);

if(load_cache(1000, $cache_filename))
{
require_once $cache_filename;
}
else
{

$url = "http://example.com";
$file = file_get_content($url);
ob_start();
echo $file;
$cached_content = ob_get_contents();
file_put_contents($cache_filename, $cached_content);
ob_end_flush();

dat's all.. list of the functions used which will help you to understand better PHP: ob_start - Manual PHP: ob_end_flush - Manual PHP: ob_get_contents - Manual PS: i learnt it from someone's script when I used to be dead noob but modifed it later to make it work better...

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

just_m3. Developer · 199 posts #34

demzx wrote: Bro i got problem my dewplayer.swf wont show

here : Www.demzx.Tk - Free search and download!

403 Permission Denied try this an see what you've got ...

403 Permission Denied

i think they got file inclusion protection or something that don't allow http:// in url path mod the file and replace http:// from grabbed links and open it internal ...

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

softwarefreak Senior · 349 posts #36

demzx wrote: How do i need to fix the problem?? do i need to change anything in files?? yeah think it wus the http://

when this :

http://www.demzx.tk/cd10/dewplayer.swf?mp3=preview.php?url=dc222.4shared.com/img/102774837/cf1c495d/dlink__2Fdownload_2FsgyFp1vs_3Ftsid_3D20120307-214705-9aa752ce/preview.mp3

it showed.

when this :

403 Permission Denied

it not showed.

Hi, but I can see that working

Search results for - enrique

👋

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

smart Newbie · 9 posts #37

softwarefreak wrote: Hi bro, follow this,it's an easy thing... let's say you're trying to grab a webpage, w/ the below code

$url = "http://example.com";
$file = file_get_content($url);
echo $file; //simple enough to understand

Now, if 10 users requests the above script url, let's say http://some.com/grab.php...the function file_get_contents will have fetch the same page 10 times,which is obviously wastage of resource & CPU. But you can make use of a cool php function ob_start(); which will start output buffering

/*
create a variable for the file dat will be used to show cached content
*/
$cache_filename = 'cache/'.md5($_SERVER['REQUEST_URI']);
/*
$_SERVER['REQUEST_URI'] will make an unique identity for each url w/ query strings
i.e http://some.com/file.php?foo=bar&bar=foo
*/
/*
Let's make a function,to overcome repeating codes in every page
*/
function load_cache($cache_time, $cache_filename)
{
/*check if,the cache file already exists, & the filesize is more than the given value
why filesize?
Incase the function you're using to fetch the page(may be file_get_contents/cURL or something else) returns false(i.e the requested server is unresponsive),the cache file will remain blank,
& if you dont use the filesize param, the blank page will be shown to the visitors...
*/
   if (file_exists($cache_filename) && filesize($cache_filename) > 10) //
 {
// the time the file was created
$cache_created = filemtime($cache_filename);
}
   else
 {
// if the file was not found
 $cache_created = 0;
}
   if ((time() - $cache_created) < $cache_time) 
 {  
	return TRUE;
}
else
{
	return FALSE;
}
//now use the function

if(load_cache(1000, $cache_filename))
{
//the first param,i.e cache time,1000 here,cuz i wana update the cache every 1000 secs 
//if it returns true,it'll mean the file exist, &  we can show it to the visitor
require_once $cache_filename; 
}
else
{

$url = "http://example.com";
$file = file_get_content($url);
//start output_buffering, which will prevent outputting directly to the browser
ob_start();
echo $file;
/*
//you can put anything here which you want to cache
echo "blah blah";
*/
$cached_content = ob_get_contents(); // this will save the buffer in a variable,
//if you don't understand,it's same like collecting rainwater in a tub :D
//Now put the cached contents in a file which will be served to the next user,requesting the same URL
file_put_contents($cache_filename, $cached_content);
//flush the current buffer output  , you may also use the buffer  dat you save i.e $cached_content
ob_end_flush();
}

Now w/o the comments,clean example

$cache_filename = 'cache/'.md5($_SERVER['REQUEST_URI']);

if(load_cache(1000, $cache_filename))
{
require_once $cache_filename;
}
else
{

$url = "http://example.com";
$file = file_get_content($url);
ob_start();
echo $file;
$cached_content = ob_get_contents();
file_put_contents($cache_filename, $cached_content);
ob_end_flush();

dat's all..

bro should i create cache folder in same grabber folder ?

demzx Newbie · 3 posts #38

@sofwarefreak,

Bro its via_google.php // not working on xml_api.php

Any idea anyone ??

softwarefreak Senior · 349 posts #39

demzx wrote: @sofwarefreak,

Bro its via_google.php // not working on xml_api.php

Any idea anyone ??

hey, you've put some wrong codes in xmp_api.php cuz of which it's not working, if you don't kno wat you're doing w/ the script better leave it as it is... 🙂

smart wrote: bro should i create cache folder in same grabber folder ?

yes, create a dir name cache 🙂

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Macneth Junior · 15 posts #40

i wonder if the preview.pm3 will be replace of its original file name..

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close