How would I go about download a remote file with php? Like a jpg or a gif? Thanks all help is greatly appreciated.
how do you mean?
Ok heres what Im trying to do. I'm opening a remote file, and pulling out the image links. I want to save the images to the local server. Don't want to go in-depth why I want to do this. Thanks
Use fopen() and fread() coz they support remote files. Note: don't use fgets() because it doesn't support binary data, which is what you're downloading.
Diego