#17958 [Com]: <input type=file> loses $_POST vars
| From: | anonumous at hotmail dot com | Date: | Tue, 27 May 2003 08:43:32 +0000 |
| Subject: | #17958 [Com]: <input type=file> loses $_POST vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40488@lists.php.net to get a copy of this message | ||
ID: 17958
Comment by: anonumous at hotmail dot com
Reported By: ddp at deakin dot edu dot au
Status: Closed
Bug Type: Apache2 related
Operating System: Linux 2.4.18
PHP Version: 4.2.3
New Comment:
eternal at clanomni,
I had your exact issue with uploading files. After changing every
setting in my http.conf and PHP.ini i discovered when i turned the
mod_gzip_on to "No" in my http.conf.
All worked !! the post variables suddenly appeared!!
Shame it was at the end of the file....
Hope that helps....
I was using W2k, PHP 4.2.2, APache 1.3.xx
Previous Comments:
------------------------------------------------------------------------
[2003-04-26 00:50:47] jd at hozt dot com
In httpd.conf Comment out these lines:
#<Files *.php>
# SetOutputFilter PHP
# SetInputFilter PHP
#</Files>
Make sure you have"
AddType application/x-httpd-php .php .php3
This fixed the problem in
Apache 2.044
PHP 4.3.1
------------------------------------------------------------------------
[2003-03-20 00:11:38] eternal at clanomni dot net
We are currently having this issue with PHP 4.3.1.
http://www.clanomni.net/phpinfo.php
Test URL to see Data isn't getting posted:
http://www.clanomni.net/test.php
------------------------------------------------------------------------
[2003-03-01 21:18:08] rustedmatrix at yahoo dot com
Spent a few hours on this one.
It wasn't a bug for me. I just had the file_upload var in php.ini
turned Off. Change it to "On" and restart Apache, and I bet it will
start working for the lot of you.
------------------------------------------------------------------------
[2003-02-19 12:50:53] php at vta dot com
Hi all,
New here, big fan of php.
Dunno if this has been covered already, hoping to help.
I had this same problem all day long, until I landed here,
and read the history.
With some careful grepping in the php4.3.1/NEWS for
'form-data' i found mention of the 'variables-order' directive. Taking
that over to php-ini, I found the directive
'gpc-order' uncommented, and noted as depricated in favor of
the 'variables_order' directive. Lo and Behod, when I removed
'gpc-order', <multipart/form-data> began to work.
friendly sugestion to comment out the gpc_order directive
in the distribution file 'php-ini' if not done already.
(Also possible that it was overlooked in the *.tar.gz file
and not the *.bz distribution, I use fetch:// to fish for
a *.gz distribution because even tho I love PHP I hate pointy-mashy
dowmload tools on unix boxes, generally, and
the website only shows *.bz2 . :) )
My build information follows, to help anyone who may need it,
just in case this is not the only solution, or if this
turns out to be a red herring because something else I did fixed it:
Host OS: FreeBSD RELENG 3
PHP version: 4.3.1 build date 2/19/2003 8:21 EDT
Apache build 1.3.27 build date: same ( slightly later :) )
Static module --with-mysql
client OS MAC OS-X 10.1
Browsers: Netscape 4.75 Mac
And: I.E 5.1 for mac
Problem: Pretty much as previously described.
Reference code sample:
"PHP4 developers's guide" McGraw-Hill, ISBN 0-07-212731-7
page 84
(Pretty much same as sample code posted by others.)
Cheers, HTH
< php at vta.com >
------------------------------------------------------------------------
[2003-01-10 11:06:34] harry at ilo dot de
I'm sorry, the bug still appears with PHP 4.3.0.
---
System Windows NT localhost 5.1 build 2600
Build Date Dec 27 2002 05:28:00
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Apache Version Apache/1.3.24
Apache Release 10324100
Apache API Version 19990320
SERVER_SOFTWARE Apache/1.3.23 (Win32) PHP/4.3.0 mod_gzip/1.3.19.1a
mod_ssl/2.8.6 OpenSSL/0.9.6c
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461;
.NET CLR 1.0.3705)
---
It doesn't matter if I use Mozilla instead.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17958
--
Edit this bug report at http://bugs.php.net/?id=17958&edit=1