Help with upload from url

Started on the old forum in September 2011 · view the original in the archive · old links redirect here

3 replies · 437 views · started 15 years ago · 1 min read

3 participants
Sifat3d Developer · 66 posts #1

Please someone provide me a single page php script. Which works like this: 1)I open INDEX.PHP file in browser. 2)there is only an upload button and nothing else. I click the upload button. 3)The file "example.net/subzero-is.rude" gets uploaded to the same directory as index.php(in my server). 3)SHOW where the file was uploaded 4)Nothing else So its like copying file from another server to my server.

THERE SHOULD NOT BE ANYTHING BUT AN SUBMIT BUTTON IN THE PAGE.NO PLACE FOR A URL. I will define the url inside THE PAGE.

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

subzero Super moderator Fellow · 3,954 posts #2

Other words you want to download php of other site ?

that can not be done you will look like a fool for trying.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

antony2kx Developer · 94 posts #3
<?php

$url = 'http://urltograb.com/file.ext';

if(isset($_POST['submit'])){

if($con=@file_get_contents($url))
{
    $details = pathinfio($url);
    $name = $details['basename'];
    $ext = isset($details['extension']) ? $details['extension'] : 'dat'; 
    $fullname = $name.'.'.$ext;

    if(file_put_contents($fullname, $con))
    {
       echo "file has been saved successfully";
     }
}
else
{
 echo "cannot download this file";
}

}
?>
<form action="" method="post">
<input type="submit" name="submit" value="getfile"/>
</form>

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