
December 8th, 2004, 06:52 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
BLOBs
I've been after a bit of help regarding BLOBs and I found a great article on here explaining how to load files from a client to a server and store the files in a databse using BLOBs, this is exactly what I need.
I'm having a slight problem though, when it comes to executing the script that uploads the file from the client I'm receiving an error messahe which reads:
Warning: fread(): supplied argument is not a valid stream resource in c:\program files\easyphp1-7\www\upload.php on line 17
the line of code that's causing this error is as follows:
$fileContent = fread($fileHandle, $fileUpload_size);
To understand more I'll show you the surrounding code:
$fileHandle = fopen($fileUpload, "r");
$fileContent = fread($fileHandle, $fileUpload_size);
$fileUpload is a global variable that contains a path to the file I wish to upload.
The problem seems to be that it doesn't like the parameters used in the fread() function but thease are exactly how they were specified in the article from this site.
I've tried changing the fopen paramaters, the fread parameters, the php.ini file but no luck. Can someone please help as I'm going round the bend here.
Thanks in advance for any help.
Pozz
|