I’m using a php script to download large files from a server and then do some processing. How can I copy them to my external hard drive after I’m done processing them?
Update:
I can use copy(). How do I reference my external drive? It shows up as Iomega_HDD in finder. But
copy('test.jpg, 'Iomega_HDD/test2.jpg')
doesn’t work.
Update2:
copy('test.jpg, '/Volumes/Iomega_HDD/test2.jpg')
Did trick …
Just use any file function and specify the full path to the correct drive, assuming you have write access to that drive. Here is an example using
file_put_contents.In windows:
In Linux: