faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

57 of 133 people (43%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How to automatic download/upload a file from client machine to server with using FTP function

Feb 26th, 2008 00:02
dman, Elena Khrissanova, sze-tuk yeung, http://www.ttnr.org


It's impossible. To invoke ftp session from client machine you have (at 
least) to use client-side language. PHP is server-side language - it 
cannot do anything with client's hard drive files. I don't think that 
client-side languages will allow you to do this either; just imagine - 
you visit a web-site and some of your files are taken from your hard-
drive without your knowledge. How would you feel? :)