Need a serious matter help please experts help me

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

4 replies · 812 views · started 14 years ago · 1 min read

3 participants
Lue_chin Developer · 107 posts #1

hello experts i think this topic only solved by a good knowledgeable person who expert in php i post 2 file one index.ph and other one is dl.php this is the grabber of erkiss.ru Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem Index.php:

<?
function cool_grab_url($url)

{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}

$coolurl="http://en.erkiss.ru/tag/$_GET[tag]/?&s=$_GET[s]";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);

$file=str_replace('/video/','dl.php?id=',$file);

echo $file;
?>

try this url to index.php?tag=1 else they show 404 not found and dl.php:

<?
function cool_grab_url($url)

{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}

$coolurl="http://en.erkiss.ru/video/$_GET[id]/?&s=$_GET[s]";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);

//$file=str_replace('/video/','dl.php?id=',$file):

echo $file;
?>
just_m3. Developer · 199 posts #2

You should consider to use quoted $_GET's

$_GET[tag]/?&s=$_GET[s]

to look like this

$_GET['tag']/?&s=$_GET['s']

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!

m4ster_v4 Developer · 125 posts #3

just_m3. wrote: You should consider to use quoted $_GET's

$_GET[tag]/?&s=$_GET

to look like this

$_GET['tag']/?&s=$_GET['s']

This will cause T_ENCAPSED_AND_WHITESPACE m8.

This code correct when it was in "

$_GET[tag]/?&s=$_GET[s]

if want to use this code ' in " you need to

".$_GET['tag']."/?&s=".$_GET['s']."

Added after 7 minutes:

Lue_chin wrote: hello experts i think this topic only solved by a good knowledgeable person who expert in php i post 2 file one index.ph and other one is dl.php this is the grabber of erkiss.ru Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem Index.php:

<?
function cool_grab_url($url)

{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}


$coolurl="http://en.erkiss.ru/tag/$_GET[tag]/?&s=$_GET";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);

$file=str_replace('/video/','dl.php?id=',$file);


echo $file;
?>

try this url to index.php?tag=1 else they show 404 not found and dl.php:

<?
function cool_grab_url($url)

{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}


$coolurl="http://en.erkiss.ru/video/$_GET[id]/?&s=$_GET";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);

//$file=str_replace('/video/','dl.php?id=',$file):


echo $file;
?>

I'm not understand well ur problem here. Since ur want to download or to grab page? or to what?

Visit my WEBSITE Project: http://www.aspirewap.net

just_m3. Developer · 199 posts #4

m4ster_v4 wrote: This will cause T_ENCAPSED_AND_WHITESPACE m8.

This code correct when it was in "

$_GET[tag]/?&s=$_GET

if want to use this code ' in " you need to

".$_GET['tag']."/?&s=".$_GET['s']."

Added after 7 minutes:

I'm not understand well ur problem here. Since ur want to download or to grab page? or to what?

Looooooool : )) i was just givin ' an example there, of how it should be ... newbies got to learn some thing by themselves ,not to put all code on the table ... 😉

The $_POST and $_GET array should only contain strings,using unquoted strings is kind of valid but you should never use it .

PHP give notices for that , , ,

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!

Lue_chin Developer · 107 posts #5

Not working bros please share some more option i have a code but i dont understand what i do with this

if (isset($_COOKIE['reival'])){
$accept = $_COOKIE['reival'];

please try to make with this one

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