Skip to content

Instantly share code, notes, and snippets.

@MN-dev
Created December 27, 2016 18:27
Show Gist options
  • Save MN-dev/4d906c44382559da80d8f7916d1181e2 to your computer and use it in GitHub Desktop.
Save MN-dev/4d906c44382559da80d8f7916d1181e2 to your computer and use it in GitHub Desktop.
Convert mediafire to direct
<!DOCTYPE html>
<head>
<title>
test Convert mediafire to direct
</title>
</head>
<h3> Code By <a href="www.fb.me/OFF.EG">fb.me/OFF.EG</a></h3>
<form action="" method="post">
<input type="text" name="link" placeholder="put your mediafire link here" id="link" required >
<input type="submit" name="submit" value="submit">
</form>
<?php
$link= '';
if(isset($_POST["link"])==null){
echo "put your MediaFire link ";
}else{
$link = $_POST["link"];
$link1 = str_replace("http://www.mediafire.com/file/" ,"http://download917.mediafire.com/amccipjetcpg/",$link);
$link2 = str_replace("http://www.mediafire.com/file/" ,"http://download1512.mediafire.com/c119w925rgvg/",$link);
echo "<br/> <a href='$link2' target='_blank'>Click here to Download Your File</a>";
echo "<br/> <a href='$link1' target='_blank'>Click here to Download Your File</a>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment