Hi, I'd be really grateful for some help with a problem that I am having transferring data to a server.
My objective is simple – to transfer data from my laptop to a server using a local PHP script, no FTP clients, no browsers, no HTML forms and no exotic server software which may not be supported by all ISPs.
I can't find a way to do it using POST and the consensus on the Web seems to be that this is deliberate, as to allow file upload without user interaction (i.e. no SUBMIT button) would be a security breach.
I believe that I could do it using GET by constructing a URL that contains the data, but it looks like I would run into problems with max URL length which, depending who you read, could be anything from 2k to 8k depending on the server. I don't want to get into splitting and reassembling the data if I can avoid it.
I've tried FTP_PUT but I can't seem to get around the “425 Can't open data connection” problem. The Filezilla forum just assigns the problem to “malicious” routers and firewalls. I don't want to get into the guts of FTP if avoidable.
I can't help feeling that I am missing something. This is such a simple requirement. Would any kind person care to share their experience in dealing with such simple data transfers? Thanks.