|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-12-12 12:10 UTC] cecot at dirbg dot com
so when I use windows2000+apache-1.3.14+php4apache.dll php-4.0.3pl1 (php as apache module) and I upload files and put them in MySQL table they do come full (only few bytes of them are inserted into MySQL) I do not know exactly how much. I downgraded to windows2000+apache-1.3.12+php.exe php-4.0.2(php as CGI) it works perfectly on linux also works perfectly PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 18:00:01 2025 UTC |
I tried windows2000+apache-1.3.14+php.exe php-4.0.2(php as CGI) - works again, so I localize the problem in php4apache.dll I guess here's the code if needed if ($HTTP_POST_FILES["pic"] && $HTTP_POST_FILES["pic"]["tmp_name"] != "none"){ $userRegistrationInfo["pic"] = addslashes(fread(fopen($HTTP_POST_FILES["pic"]['tmp_name'], "r"), filesize($HTTP_POST_FILES["pic"]['tmp_name'])));unlink($HTTP_POST_FILES["pic"]['tmp_name']); $userRegistrationInfo["pic_type"] = $HTTP_POST_FILES["pic"]['type']; } and after that something like mysql_query("insert into person set ".implode(',', $userQuery));