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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 05:01:37 2025 UTC