Jump to content

PHP Question about Download


Miku

Recommended Posts

Hi, i own a Anime/Manga site and I need some way to hide where the file is comming from what I seen is this site called mangadownload.net this how it works....

 

say you loged in and go to a manga you like a URL will look something like this

 

http://www.mangadownload.net/Manga/178

 

when you hover over the link this what you will see http://www.mangadownload.net/Download/4551

 

when you click download the file appears but it appears not from domain of mangadownload.net like it should but from ringo.mangadownload.net if you see the first letters to ringo in your browser URL you will see the link in which case it is http://ringo.mangadownload.net/hackGU/hackGU_ch01[TWH].rar for the specific file...

 

can some one tell me how i can do the same thing? i think it has something to do with <?php header('location: something.php'); ?> or maybe something else...

 

Also is there a way to have a login script which requires the person to be loged in to be able to click the download link if there not logged in they just see .hack//G.U. ch_001 as text not a link....

 

-Thank you!

Link to comment
https://forums.phpfreaks.com/topic/143711-php-question-about-download/
Share on other sites

can you provide and example code please i dont understand it? all i found about the site that when you click the link it goes to /Download/# and then i think it calls the function of <?php header('Location: /Manga/#'); ?>

 

so this what i think the /Download/# index.php looks like i might be wrong so please correct me.

<html>
<head>
<title></title>
</head>
<body>
<?php header('Location: /Manga/#'); ?>
<?php
$file=fopen("http://subdomain.domain.com/filename","r") or exit("Unable to open file!");
?>
</body>

 

i am not shure that correct but yep... if some one can help please help me as i need help...

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.