Hi, Under PHP 4.2.3 and 4.2.2 with Apache 1.3.6, all under Windows XP, when a form has a file input field, if I browse and upload, all the information going with the post to the server gets lost!!! There is no trace of it (and this is what's really frustating me, no trace in any log of any errors). var_dump's show everything empty. If I submit without browsing (i.e. no file selected), I do see the $_FILES array signaling an error, but otherwise complete, and everything else (though, on further testing, it seems that it works one out of every 4 times when no file is selected, and never if a file is selected).
I have checked the max_filesize and every other limit and they seem ok. I have tried with different files with no results, picking them from different folders in the hard drive, too. I have also tried the same code while in another server (Solaris and Red Hat Linux) and there it works, while I upload files from my XP machine. I have made the php.ini as close as possible to those other systems, but still nothing. I have checked the event viewer in Windows XP to see if there is something in there, but nothing showed up. I've been trying with both IE and Mozilla. No difference. What follows is the phpinfo(). Maybe someone can spot a problem in there. PHP Version 4.2.3 System Windows NT 5.1 build 2600 Build Date Sep 6 2002 10:38:51 Server API Apache Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS\php.ini Debug Build no Thread Safety enabled This program makes use of the Zend Scripting Language Engine: Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies PHP 4 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen 1 1 always_populate_raw_post_data 0 0 arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors On On doc_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 2047 2047 expose_php On On extension_dir ../ ../ file_uploads 1 1 gpc_order GPC GPC highlight.bg #FFFFFF #FFFFFF highlight.comment #FF9900 #FF9900 highlight.default #0000CC #0000CC highlight.html #000000 #000000 highlight.keyword #006600 #006600 highlight.string #CC0000 #CC0000 html_errors On On ignore_user_abort Off Off implicit_flush Off Off include_path ..;c:\program files\php 4.2.3\pear ..;c:\program files\php 4.2.3\pear log_errors On On magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off max_execution_time 30 30 open_basedir no value no value output_buffering 4096 4096 output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv Off Off register_globals Off Off safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from [EMAIL PROTECTED] [EMAIL PROTECTED] sendmail_path no value no value short_open_tag On On SMTP localhost localhost sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order GPCS GPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance Off Off standard Regex Library Bundled library enabled Dynamic Library Support enabled Internal Sendmail Support for Windows enabled Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 safe_mode_allowed_env_vars PHP_ PHP_ safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry bcmath BCMath support enabled calendar Calendar support enabled com Directive Local Value Master Value com.allow_dcom Off Off com.autoregister_casesensitive On On com.autoregister_typelib Off Off com.autoregister_verbose Off Off com.typelib_file no value no value ftp FTP support enabled mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.39 Directive Local Value Master Value mysql.allow_persistent On On mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited odbc ODBC Support enabled Active Persistent Links 0 Active Links 0 ODBC library Win32 Directive Local Value Master Value odbc.allow_persistent On On odbc.check_persistent On On odbc.default_db no value no value odbc.default_pw no value no value odbc.default_user no value no value odbc.defaultbinmode return as is return as is odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes odbc.max_links Unlimited Unlimited odbc.max_persistent Unlimited Unlimited pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 3.4 22-Aug-2000 session Session Support enabled Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path c:\windows\temp c:\windows\temp session.serialize_handler php php session.use_cookies On On session.use_trans_sid 1 1 xml XML Support active XML Namespace Support active EXPAT Version 1.95.2 wddx WDDX Support enabled apache Apache for Windows 95/NT Apache Version Apache/1.3.24 Apache Release 10324100 Apache API Version 19990320 Hostname:Port localhost:80 Timeouts Connection: 300 - Keep-Alive: 15 Directive Local Value Master Value child_terminate 0 0 engine 1 1 last_modified 0 0 xbithack 0 0 Apache Environment Variable Value COMSPEC C:\WINDOWS\system32\cmd.exe DOCUMENT_ROOT c:/documents and settings/jose/my documents/__wwwserver HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q= 0.1 HTTP_ACCEPT_CHARSET ISO-8859-1, utf-8;q=0.66, *;q=0.66 HTTP_ACCEPT_ENCODING gzip, deflate, compress;q=0.9 HTTP_ACCEPT_LANGUAGE en-us, en;q=0.50 HTTP_CONNECTION keep-alive HTTP_HOST localhost HTTP_KEEP_ALIVE 300 HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910 PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\ REDIRECT_STATUS 200 REDIRECT_URL /testing/phpinfo.php REMOTE_ADDR 127.0.0.1 REMOTE_PORT 3981 SCRIPT_FILENAME c:/documents and settings/jose/my documents/__wwwserver/testing/phpinfo.php SERVER_ADDR 127.0.0.1 SERVER_ADMIN [EMAIL PROTECTED] SERVER_NAME localhost SERVER_PORT 80 SERVER_SIGNATURE <ADDRESS>Apache/1.3.26 Server at localhost Port 80</ADDRESS> SERVER_SOFTWARE Apache/1.3.26 (Win32) PHP/4.2.3 mod_gzip/1.3.19.1a SystemRoot C:\WINDOWS WINDIR C:\WINDOWS GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING REQUEST_URI /testing/phpinfo.php SCRIPT_NAME /testing/phpinfo.php HTTP Headers Information HTTP Request Headers HTTP Request GET /testing/phpinfo.php HTTP/1.1 Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q= 0.1 Accept-Charset ISO-8859-1, utf-8;q=0.66, *;q=0.66 Accept-Encoding gzip, deflate, compress;q=0.9 Accept-Language en-us, en;q=0.50 Connection keep-alive Host localhost Keep-Alive 300 User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910 HTTP Response Headers X-Powered-By PHP/4.2.3 Keep-Alive timeout=15, max=100 Connection Keep-Alive Transfer-Encoding chunked Content-Type text/html Additional Modules Environment Variable Value ALLUSERSPROFILE C:\Documents and Settings\All Users CommonProgramFiles C:\Program Files\Common Files COMPUTERNAME YAL ComSpec C:\WINDOWS\system32\cmd.exe NUMBER_OF_PROCESSORS 1 OS Windows_NT Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\ PATHEXT ..COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE x86 PROCESSOR_IDENTIFIER x86 Family 6 Model 8 Stepping 3, GenuineIntel PROCESSOR_LEVEL 6 PROCESSOR_REVISION 0803 ProgramFiles C:\Program Files SystemDrive C: SystemRoot C:\WINDOWS TEMP C:\WINDOWS\TEMP TMP C:\WINDOWS\TEMP USERPROFILE C:\Documents and Settings\LocalService windir C:\WINDOWS PHP Variables Variable Value _SERVER["COMSPEC"] C:\WINDOWS\system32\cmd.exe _SERVER["DOCUMENT_ROOT"] c:/documents and settings/jose/my documents/__wwwserver _SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q= 0.1 _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1, utf-8;q=0.66, *;q=0.66 _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate, compress;q=0.9 _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us, en;q=0.50 _SERVER["HTTP_CONNECTION"] keep-alive _SERVER["HTTP_HOST"] localhost _SERVER["HTTP_KEEP_ALIVE"] 300 _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910 _SERVER["PATH"] C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\ _SERVER["REDIRECT_STATUS"] 200 _SERVER["REDIRECT_URL"] /testing/phpinfo.php _SERVER["REMOTE_ADDR"] 127.0.0.1 _SERVER["REMOTE_PORT"] 3981 _SERVER["SCRIPT_FILENAME"] c:/documents and settings/jose/my documents/__wwwserver/testing/phpinfo.php _SERVER["SERVER_ADDR"] 127.0.0.1 _SERVER["SERVER_ADMIN"] [EMAIL PROTECTED] _SERVER["SERVER_NAME"] localhost _SERVER["SERVER_PORT"] 80 _SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.26 Server at localhost Port 80</ADDRESS> _SERVER["SERVER_SOFTWARE"] Apache/1.3.26 (Win32) PHP/4.2.3 mod_gzip/1.3.19.1a _SERVER["SystemRoot"] C:\WINDOWS _SERVER["WINDIR"] C:\WINDOWS _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] _SERVER["REQUEST_URI"] /testing/phpinfo.php _SERVER["SCRIPT_NAME"] /testing/phpinfo.php _SERVER["PATH_TRANSLATED"] c:/documents and settings/jose/my documents/__wwwserver/testing/phpinfo.php _SERVER["PHP_SELF"] /testing/phpinfo.php PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php