uploading files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zinc
Forum Newbie
Posts: 15
Joined: Fri Feb 10, 2006 1:02 am

uploading files

Post by zinc »

hi guys,

the web server and file server resides in two different servers...how do upload the files??
do i use the ip address of the file server as the path and copy the file to that server
or do i save the file in a temp folder within the web server and then scp it to the file server
upon successful , unlink the file in the web server???

is there other way to do it???

thx
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the latter is often done via FTP or similar transport.
zinc
Forum Newbie
Posts: 15
Joined: Fri Feb 10, 2006 1:02 am

Post by zinc »

is that the usual way to do it??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If the file server and web server are separate machines, yes. FTP is sometimes the only way to upload files on certain web servers (by themselves) due to security/configuration issues the host imposes.
Post Reply