I have a URL that when entered returns a file. It's something like If I enter that URL I will get the image or document that I'm looking for. No HTML at all. Just the file.
Now, I'm trying to use the following line to capture that file in order to include it in a zip file using the following line:
It is returning true, but the file is always less than 4K. It's not grabbing the contents of the file, even though it is returning true. The thing is I HAD this working at one point, but now I don't know what is wrong... does anyone have any ideas on why this might be happening to me? Or examples of how others have done this?
Now, I'm trying to use the following line to capture that file in order to include it in a zip file using the following line:
Code:
$fileContents = file_get_contents("[URL unfurl="true"]http://yourdomain.com/file.php?fileID=43433")[/URL]
It is returning true, but the file is always less than 4K. It's not grabbing the contents of the file, even though it is returning true. The thing is I HAD this working at one point, but now I don't know what is wrong... does anyone have any ideas on why this might be happening to me? Or examples of how others have done this?