Re: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread 1LT John W. Holmes

What are the settings for upload_tmp_dir and file_uploads in the php.ini on
the windows box? Does the Apache user have permission to write to that
directory if it's valid?

---John Holmes...

- Original Message -
From: Jose Fandos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 4:12 PM
Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with
4.2.2


 Hi,

 I was working on some code and couldn't get the following form to return
 anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.

 I've just tried in a Solaris machine with same versions of Apache and
 PHP and it works just fine. Same with a Linux machine running Red Hat
 and same versions of Apache and PHP. Could someone else confirm this
 under XP?

 I have the magic_quotes set to Off, but tried with On with the same
 result. In fact the settings in the Unix machines and Windows XP with
 regards to Apache and PHP are as close to each other as they can be.

 If it's a known bug, is there any way I can patch or update my PHP to
 have it working again?

 The following code will dump the contents of $_REQUEST and $_FILES. When
 a file is selected under Windows XP (and the Apache server and PHP are
 running in Windows XP) the information gets lost, without a trace of an
 error. Works fine when the server is Solaris

 Jose

 ===
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
 head
 titleTest/title
 /head
 body
 h1Test/h1
 p
 ?
   echo '$_REQUEST = '; var_dump($_REQUEST); echo br;
   echo '$_FILES = '; var_dump($_FILES); echo br;
 ?
 /p

 form enctype=multipart/form-data method=post action=? echo
 $_SERVER['PHP_SELF']; ?
 input type=hidden name=MAX_FILE_SIZE value=? echo 1000*1024; ?
 /
 input type=file name=test size=40
 input type=submit name=submit value=Upload Test
 /form
 /body
 /html
 ==


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread Jose

I did go back to PHP 4.2.2 to double check and it doesn't work there
either.

 -Original Message-
 From: Jose Fandos [mailto:[EMAIL PROTECTED]]
 Sent: 23 September 2002 21:12
 To: [EMAIL PROTECTED]
 Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked
with
 4.2.2
 
 Hi,
 
 I was working on some code and couldn't get the following form to
return
 anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
 
 I've just tried in a Solaris machine with same versions of Apache and
 PHP and it works just fine. Same with a Linux machine running Red Hat
 and same versions of Apache and PHP. Could someone else confirm this
 under XP?
 
 I have the magic_quotes set to Off, but tried with On with the same
 result. In fact the settings in the Unix machines and Windows XP with
 regards to Apache and PHP are as close to each other as they can be.
 
 If it's a known bug, is there any way I can patch or update my PHP to
 have it working again?
 
 The following code will dump the contents of $_REQUEST and $_FILES.
When
 a file is selected under Windows XP (and the Apache server and PHP are
 running in Windows XP) the information gets lost, without a trace of
an
 error. Works fine when the server is Solaris
 
   Jose
 
 ===
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
 head
 titleTest/title
 /head
 body
 h1Test/h1
 p
 ?
   echo '$_REQUEST = '; var_dump($_REQUEST); echo br;
   echo '$_FILES = '; var_dump($_FILES); echo br;
 ?
 /p
 
 form enctype=multipart/form-data method=post action=? echo
 $_SERVER['PHP_SELF']; ?
 input type=hidden name=MAX_FILE_SIZE value=? echo 1000*1024;
?
 /
 input type=file name=test size=40
 input type=submit name=submit value=Upload Test
 /form
 /body
 /html
 ==
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread Jose


Hi,

The upload_tmp_dir in php.ini:

; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
;upload_tmp_dir =

So it uses c:\windows\temp

And file upload:

; Whether to allow HTTP file uploads.
file_uploads = On

The directory is valid and Apache should have permissions but I don't
know how to check that for granted, any hint?

What puzzles me is that the whole $_REQUEST comes empty, not even
MAX_FILE_SIZE is passed along, nor there is any error being thrown
anywhere. I have error reporting set to all.

Jose


 -Original Message-
 From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
 Sent: 23 September 2002 21:49
 To: Jose Fandos; [EMAIL PROTECTED]
 Subject: Re: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?)
worked
 with 4.2.2
 
 What are the settings for upload_tmp_dir and file_uploads in the
php.ini
 on
 the windows box? Does the Apache user have permission to write to that
 directory if it's valid?
 
 ---John Holmes...
 
 - Original Message -
 From: Jose Fandos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, September 23, 2002 4:12 PM
 Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked
with
 4.2.2
 
 
  Hi,
 
  I was working on some code and couldn't get the following form to
return
  anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
 
  I've just tried in a Solaris machine with same versions of Apache
and
  PHP and it works just fine. Same with a Linux machine running Red
Hat
  and same versions of Apache and PHP. Could someone else confirm this
  under XP?
 
  I have the magic_quotes set to Off, but tried with On with the same
  result. In fact the settings in the Unix machines and Windows XP
with
  regards to Apache and PHP are as close to each other as they can be.
 
  If it's a known bug, is there any way I can patch or update my PHP
to
  have it working again?
 
  The following code will dump the contents of $_REQUEST and $_FILES.
When
  a file is selected under Windows XP (and the Apache server and PHP
are
  running in Windows XP) the information gets lost, without a trace of
an
  error. Works fine when the server is Solaris
 
  Jose
 
  ===
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html
  head
  titleTest/title
  /head
  body
  h1Test/h1
  p
  ?
echo '$_REQUEST = '; var_dump($_REQUEST); echo br;
echo '$_FILES = '; var_dump($_FILES); echo br;
  ?
  /p
 
  form enctype=multipart/form-data method=post action=? echo
  $_SERVER['PHP_SELF']; ?
  input type=hidden name=MAX_FILE_SIZE value=? echo 1000*1024;
?
  /
  input type=file name=test size=40
  input type=submit name=submit value=Upload Test
  /form
  /body
  /html
  ==
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php