Have you check your upload_max_filesize in php.ini?
--- On Thu, 12/4/08, afsane_abasnejad <[EMAIL PROTECTED]> wrote:
From: afsane_abasnejad <[EMAIL PROTECTED]>
Subject: [php_mysql] upload files to database problem
To: [email protected]
Date: Thursday, December 4, 2008, 1:58 AM
hi to all
i want upload important files in mysql database, but it have some
problem:
i just can upload smal files
below 1 mb
this code is:
21) $fp = fopen($tmp_name, 'r');
22) $content = fread($fp, filesize($tmp_ name));
23) $content = addslashes($ content);
24) fclose($fp);
when i upload large files it show error:
Warning: fread(): supplied argument is not a valid stream resource in
E:\Program Files\wamp\www\ upload.php on line 22
Warning: fclose(): supplied argument is not a valid stream resource in
E:\Program Files\wamp\www\ upload.php on line 24
plz help me
[Non-text portions of this message have been removed]