php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22107 file upload problem
Submitted: 2003-02-07 07:01 UTC Modified: 2003-02-09 08:27 UTC
From: luca dot mariano at email dot it Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.0 OS: OpenBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: luca dot mariano at email dot it
New email:
PHP Version: OS:

 

 [2003-02-07 07:01 UTC] luca dot mariano at email dot it
When calling a php script from a POST form like this:

<form enctype="multipart/form-data" method="post" action="upload.php">
Send file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>

the script upload.php have the $_FILES array empty.

The output of print_r($_FILES) is an empty array ().

HTML form and PHP pages are under https (Apache/1.3.26 (Unix) PHP/4.3.0 mod_ssl/2.8.10 OpenSSL/0.9.7-beta3).

Of course all works fine with a Linux Box (RH 7.2) and with windoz too (using http).


Configure Options for php:
./configure --with-apxs=/usr/sbin/apxs --enable-ftp --enable-inline-optimization --with-zlib --disable-cli --disable-cgi --with-mysql 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-07 07:08 UTC] andrey@php.net
 Could you provide some link to a place where your results can be seen?
 [2003-02-07 08:56 UTC] sniper@php.net
Try removing this from your configure line:
 --enable-inline-optimization

Then 'rm config.cache' and run configure/make etc.
And also check your php.ini and that the correct
one is loaded by php.

Doing a 'diff -u php.ini php.ini-dist' would also help a bit.


 [2003-02-07 09:20 UTC] luca dot mariano at email dot it
Thaks, I'll try soon to re-configure without-inline-optimization.
I cannot provide any link to the real installation because it's in the LAN of a customer...
 [2003-02-07 23:18 UTC] sniper@php.net
Set to open only when you give the actual feedback.

 [2003-02-08 15:36 UTC] luca dot mariano at email dot it
Problem solved. There was related to the binary distribution of apache, all is fine now by simply recompiling mod_ssl and apache from sources.
Thanks for the help!
 [2003-02-09 08:27 UTC] sniper@php.net
Not PHP bug -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 07:01:34 2024 UTC