I take the point about binaries and, yes, I can live without storing them in the database itself.
I do, however, want to nail this one so I can move on.
The 2 lines of code at the heart of this are:-
echo "<br> filetype is ".filetype($smallLogo)."<br>";
- this one (correctly) tells me that $smallLogo - from a form - is a file (interrogating the file size and type gives: Original file name:0134613449.gif
Size: 17940
Type: image/gif) - so I thought I'd got a vlid file and path name at this point).
I then try to read the file using
$data=fread($smallLogo,$smallLogo_size);
at which point I get the error. Incidentally $smallLogo is typically of the form :
/var/tmp/php000292
which is what I'd expect.
What else can I check/is there a glaring error here?
Cheers.
Nic