Quote:
Originally Posted by Dirty D
rsync or perhaps wget
|
- It is a push, not a pull, so I can't use wget. The sending server must initiate the call.
Quote:
Originally Posted by rowan
Pre-empting an "I need to load the file into memory in order to md5 it" reply... use md5_file() 
|
- The md5 is just a security measure - it's not against the file itself. Since the destination server is listening for incoming files from multiple servers, I wanted to make sure a hacker could never stumble upon the URL call and send files to the server without some sort of checksum / security.
Quote:
Originally Posted by rowan
Looks like you're loading the entire temp upload file into memory in order to save a copy? PHP is probably hitting the configured maximum memory limit for a script. Why don't you just use php's copy() function?
If it's still failing then try increasing the value of upload_max_filesize in php.ini
|
- Duh!! Of course. copy is exactly what I neeed (rather than load/save). Thanks! And since it's a copy of a tmp file, I could actually just use move!
Amazing how a different pair of eyes saw that immediately!