Help: upload files files from another website

Any problem with PHP can be disscused here
Post Reply
Mcbollard
Posts: 79
Joined: Sat Sep 09, 2006 12:23 am

Help: upload files files from another website

Post by Mcbollard »

anyone no how to transfer files from another website using php?


darko
Posts: 409
Joined: Thu Jul 07, 2005 7:05 pm
Contact:

Post by darko »

PHP only moves files on the same server, to get files from other website, you have to download them on your computer, and uploading them manually on your website
Darko
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

why,
it's not 100% truth
In fact, using php script you can transfer all kinds of files, even php sorce. Tu do this you need to have ftp acceess to source server, and php script can copy files to destination server (the same server from which php script was executed)
You can achieve that by using socket programming
for example i've done one project where php script communicate with other server (java server) sending there requests and getting responses (and of course shoing it in website). But i dont know how about biiiiiig files (1mb and more....), because in my project where was just a few bytes of information (no more that 150 symbols of response) Try to search for ftp'ing class at http://www.phpclasses.org/ and try to build a script that transfer all files from one server to another, maybe you will do in successfuly (if you are advanced php programmer)

Try this: http://www.phpclasses.org/browse/package/3174.html
Image
darko
Posts: 409
Joined: Thu Jul 07, 2005 7:05 pm
Contact:

Post by darko »

you're right, but i don't that he will have and ftp access to the files he's transfering, i think he's talking about moving files, for another website that he doessn't have anything to do with and offering them on his website, what you are talking about is used for example to migrate from a server to another, or by a network of website run by the same person, designed to show some similar content.
Darko
rwshthn
Posts: 500
Joined: Tue Sep 26, 2006 1:39 am
Contact:

the answer

Post by rwshthn »

take the direct link and bot it in the html language but i want direct link in upload if you have
Holograph
Posts: 14
Joined: Wed Oct 11, 2006 7:52 am

Post by Holograph »

Really would not have a clue.

There might be a tutorial or something somewere on the web

Try searching on google.
TheCrymsonLegends
Posts: 1246
Joined: Wed Feb 16, 2005 6:59 am

Post by TheCrymsonLegends »



The only possible way to do this is to have FTP Access, which indicates you are either the owner of the site or a webmaster. To my knowledge it's only possible to do this via downloading and uploading from one site to another using your computer but... Instead of using your computer there may be a shortcut to save time.

CUTEFTP allows you to log into 2 seperate FTP sites which if you drag from one to the other it might possible start a trasnfer downloading to temp folder and uploading to the other site.

If you're planning on attempting to steal a website then there is no possible way lol. But I hope this helps, but the only way is with FTP Access, which means downloading/uploading unless you do what Lixas has said. But it would save so so so much more time if you just FTP'd it. Because many php scripts are not designed to haul large ammounts of data, but if you find a script that can do this... please let me know lol.

Goodluck.

Reached 5000 Credits! The highest of any member on Smokyhosts! New milestone for Me!
Mcbollard
Posts: 79
Joined: Sat Sep 09, 2006 12:23 am

Post by Mcbollard »

yeah i own both sites, so i'm going to look into the ftp option[/quote]
liebeck
Posts: 13
Joined: Fri Aug 04, 2006 8:44 am

Post by liebeck »

You Could Just Copy The HTML And Just Paste It And Edit It To Your uses.
If Its Mine Its Yours.
rwshthn
Posts: 500
Joined: Tue Sep 26, 2006 1:39 am
Contact:

its

Post by rwshthn »

its easy man
Post Reply