Dynadot โ€” .com Transfer

How to upload a url to my server

Spacemail by SpaceshipSpacemail by Spaceship
Watch
how to upload a url to my server
i want to know how can i upload to my server a url on the internet
without downloading it to my pc then uploading it to my server

Anyone knows how its done
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
What do you mean? A URL isn't a file, so you can't upload (or download) one.
 
0
•••
0
•••
its not an image its a zip file
i mean let say i want to upload a script to my server which is found for example at http://yourdomain.com/script.zip
i want to directly upload the script to my server without the need to download it to my PC then upload it to the server
i want to upload it directly without downloading from http://yourdomain.com/script.zip to my server
 
0
•••
u should have the online editoe on ur server installed
 
0
•••
online editor?
i got Cpanel hosting with the latest file manager that allowes uploading files just from my pc but i want to upload a file on the internet to my server :|
 
0
•••
PHP:
<?php
if ($_GET[xfer]) {
if ($_POST[from] == "") {
print "You forgot to enter a url.";
} else {
copy("$_POST[from]", "$_POST[to]");
$size = round((filesize($_POST[to])/1000000), 3);
print "Transfer complete. <br>
<a><a href=\"$_POST[from]\">$_POST[from]</a><br>
<a><a href=\"$_POST[to]\">$_POST[to]</a> : $size MB";
}
} else {
print "<form action=\"$PHP_SELF?xfer=true\" method=post>
from(http://): <input name=from><br>
to(filename): <input name=to><br>
<input type=submit value=\"transload\">";
}
?>

Remember to CHMOD to 777 and put it in a secure place, so people don't upload .php and crap like that onto your server.

P.S. I know it's ugly, but it works, K?
 
1
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back