I have a large file 500MB at the url http://domain.com/somefile.mxt. Because it’s a large file, I’m not sure what PHP command is more suited for this. Then how do I save it after that?
p.s. the file extension may be anything, not just .mxt
I’m also working with the Zend Framework, so if there’s anything more specific to Zend, that would be helpful
To download it into the directory your script is running from (must have write permissions):
To import it into a variable in the PHP script (no need for write permissions):
Using the above you can parse the file and put put the output into a local file with:
For writing the file to disk you need write permissions in the directory you are putting it into.