Bug #8210 Updated: file upload
| From: | sniper@php.net | Date: | Tue, 15 May 2001 00:17:35 +0000 |
| Subject: | Bug #8210 Updated: file upload | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55266@lists.php.net to get a copy of this message | ||
ID: 8210
Updated by: sniper
Reported By: cecot@dirbg.com
Old-Status: Open
Status: Closed
Bug Type: HTTP related
Operating system:
PHP Version: 4.0.3pl1
Assigned To:
Comments:
RTFM. http://www.php.net/fopen
Pay attention escpecially on the part which says
something about modes and having 'b' in it.
This is NOT a bug.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-04-19 04:51:55] cecot@dirbg.com
i haven't tried it my self, but mail@frank-wollenweber.de asked me to reopen it because in
4.0.5RC1 the bug is there
---------------------------------------------------------------------------
[2001-04-10 09:36:43] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.
--Jani
---------------------------------------------------------------------------
[2001-02-25 07:45:36] sbergmann@php.net
Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from http://snaps.php.net/?
---------------------------------------------------------------------------
[2000-12-12 12:41:36] cecot@dirbg.com
one more test
windows2000+apache-1.3.14+php.exe php-4.0.3pl1(php as CGI) is working
definetly the problem is in php4apache.dll
---------------------------------------------------------------------------
[2000-12-12 12:36:08] cecot@dirbg.com
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));
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8210&edit=2