ID: 38666 User updated by: chella_it05 at yahoo dot co dot in Reported By: chella_it05 at yahoo dot co dot in -Status: Feedback +Status: Open Bug Type: IIS related Operating System: windows2003 PHP Version: 5.1.6 New Comment:
In my database(mysql), all fields were added successfully except(picture files, BLOB) i check it while image array types then it ll added.. i done another method like add directel picture files to database.. then picture files can't show properly, only half of image was display and not clear view.. i'm normally using <?php ?> those type of tags only... Previous Comments: ------------------------------------------------------------------------ [2006-08-31 08:27:25] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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