ID: 38666 Updated by: [EMAIL PROTECTED] Reported By: chella_it05 at yahoo dot co dot in -Status: Open +Status: Feedback -Bug Type: Compile Warning +Bug Type: IIS related Operating System: windows2003 PHP Version: 5.1.6 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-08-31 08:17:10] chella_it05 at yahoo dot co dot in Description: ------------ PHP was installed ii6, while uploading picture files to database, getting warning like this but add picture in database.. can't read or view retriveing pictures from database Reproduce code: --------------- if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { $userfile = addslashes(fread(fopen($_FILES["userfile"]["tmp_name"], "r"),filesize($_FILES["userfile"]["tmp_name"]))); $file_name = $_FILES["userfile"]["name"]; $file_size = $_FILES["userfile"]["size"]; $file_type = $_FILES["userfile"]["type"]; Expected result: ---------------- Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php54.tmp in c:\Inetpub\wwwroot\project\picture.php on line 27 Warning: fread() [function.fread]: Length parameter must be greater than 0 in c:\Inetpub\wwwroot\project\picture.php on line 27 Actual result: -------------- . ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38666&edit=1