Page 4 of 4
Posted: Tue Mar 23, 2004 10:44 am
by magicrobotmonkey
I'm not sure why you are using a put. it seems like it should be a get.
what do you put in for the host? your server or the client? this is confusing...
Posted: Tue Mar 23, 2004 10:49 am
by ol4pr0
Code: Select all
move_upload
// should be like below if you ask me.
@copy / copy()
Posted: Tue Mar 23, 2004 11:04 am
by mjseaden
I'm working on it - I'll post back if I manage to get the code working. It looks good so far...
Posted: Tue Mar 23, 2004 11:07 am
by redmonkey
mjseaden wrote:
I think the problem is that what I'm asking it to do is in fact impossible - I don't think PHP can access the local machine's files in this way.
No, the problem is that you do not understand how the process works.
If your form based submission process is on the same server as where you are trying to transfer the file to by FTP (which from what I gather it is) then you don't require the FTP part of your script (unless you are running into permissions problems).
Once your form has been submitted THE FILES ARE ON YOUR SERVER. They are stored in a temporary directory. You then just need to move the files and all should be done.
The answer to your problem has already been given, as Wayne points out look at
http://www.devnetwork.net/forums/viewtopic.php?t=19787 which shows a simple implementation of what you are trying to do.
You should forget about the FTP part as I don't see this as being required.
Posted: Tue Mar 23, 2004 11:29 am
by mjseaden
Despite the mild condescending tone you've helped explain it very well.
Thanks very much.