Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-30 Thread Al
You nailed it Curt.
Virtual Host Powweb removed the system default tmp directory without telling 
anyone.  All file uploading services were broken.

I fixed the problem in php.ini
Thanks everyone.

Curt Zirzow wrote:
* Thus wrote Al:
What is a $_FILE[user][error]= 6
I can't find Error level 6 in the manual or on Google.
Here is my files array:
[userfile] = Array
   (
   [name] = Readme.txt
   [type] =
   [tmp_name] =
   [error] = 6
   [size] = 0
   )
Doesn't make sense.  Readme.txt is simply a small text file on my local HD.

6 == Missing /tmp or similar directory. 

Which means that your php.ini's upload_tmp_dir isn't set properly.
Curt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Christopher Fulton
It may help to know what your form looks like.  Does your form have
the hidden MAX_FILE_SIZE variable before the file field?  Also, what
version of PHP are you running?

Anyways, just some suggestions.
-Chris


On Tue, 28 Dec 2004 15:18:16 -0500, Al [EMAIL PROTECTED] wrote:
 I keyed $_FILE[user][error] from memory, and it's wrong.  It really is 
 userfile;
 
 Weird problem, eh!
 
 Sebastian wrote:
  not sure if its a typo but the array shows userfile and your variable
  array shows user
  it looks like the file isn't being passed at all, double check if you have
  any typos..  type is blank which should at least show the mime type..
 
  - Original Message -
  From: Al [EMAIL PROTECTED]
  To: php-general@lists.php.net
  Sent: Tuesday, December 28, 2004 2:51 PM
  Subject: Re: [PHP] $_FILE[user][error] = 6 ?
 
 
 
 Doesn't work on any file type.
 
 I've checked the usual suspects. e.g.
 form enctype=multipart/form-data action=_url_ method=\post\ URL is
 
  my
 
 php file.
 
 On Wednesday 29 December 2004 01:40, Al wrote:
 
 What is a $_FILE[user][error]= 6
 
 I can't find Error level 6 in the manual or on Google.
 
 Here is my files array:
 
 [userfile] = Array
 (
  [name] = Readme.txt
  [type] =
  [tmp_name] =
  [error] = 6
  [size] = 0
  )
 
 Doesn't make sense.  Readme.txt is simply a small text file on my local
 
  HD.
 
 --
 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] $_FILE[user][error] = 6 ?

2004-12-29 Thread Greg Donald
 What is a $_FILE[user][error]= 6

It appears undefined per the manual:

http://www.php.net/manual/en/features.file-upload.errors.php


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Curt Zirzow
* Thus wrote Al:
 What is a $_FILE[user][error]= 6
 
 I can't find Error level 6 in the manual or on Google.
 
 Here is my files array:
 
 [userfile] = Array
 (
 [name] = Readme.txt
 [type] =
 [tmp_name] =
 [error] = 6
 [size] = 0
 )
 
 Doesn't make sense.  Readme.txt is simply a small text file on my local HD.

6 == Missing /tmp or similar directory. 

Which means that your php.ini's upload_tmp_dir isn't set properly.


Curt
-- 
Quoth the Raven, Nevermore.

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



Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Curt Zirzow
* Thus wrote Greg Donald:
  What is a $_FILE[user][error]= 6
 
 It appears undefined per the manual:
 
 http://www.php.net/manual/en/features.file-upload.errors.php

It will show up shortly, the entry will be something like:

UPLOAD_ERR_NO_TMP_DIR

  Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
  5.0.3.


Curt
-- 
Quoth the Raven, Nevermore.

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



[PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Al
What is a $_FILE[user][error]= 6
I can't find Error level 6 in the manual or on Google.
Here is my files array:
[userfile] = Array
(
[name] = Readme.txt
[type] =
[tmp_name] =
[error] = 6
[size] = 0
)
Doesn't make sense.  Readme.txt is simply a small text file on my local HD.
Note, type doesn't register either.
Weird.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Jason Wong
On Wednesday 29 December 2004 01:40, Al wrote:
 What is a $_FILE[user][error]= 6

 I can't find Error level 6 in the manual or on Google.

 Here is my files array:

 [userfile] = Array
  (
  [name] = Readme.txt
  [type] =
  [tmp_name] =
  [error] = 6
  [size] = 0
  )

 Doesn't make sense.  Readme.txt is simply a small text file on my local HD.

 Note, type doesn't register either.

Does upload work at all, or does it only fail for that particular file? 

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Sometime in 1993 NANCY SINATRA will lead a BLOODLESS COUP on GUAM!!
*/

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



Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Al
Doesn't work on any file type.
I've checked the usual suspects. e.g.
form enctype=multipart/form-data action=_url_ method=\post\ URL is my 
php file.

Jason Wong wrote:
On Wednesday 29 December 2004 01:40, Al wrote:
What is a $_FILE[user][error]= 6
I can't find Error level 6 in the manual or on Google.
Here is my files array:
[userfile] = Array
(
[name] = Readme.txt
[type] =
[tmp_name] =
[error] = 6
[size] = 0
)
Doesn't make sense.  Readme.txt is simply a small text file on my local HD.
Note, type doesn't register either.

Does upload work at all, or does it only fail for that particular file? 

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


Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Sebastian
not sure if its a typo but the array shows userfile and your variable
array shows user
it looks like the file isn't being passed at all, double check if you have
any typos..  type is blank which should at least show the mime type..

- Original Message - 
From: Al [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, December 28, 2004 2:51 PM
Subject: Re: [PHP] $_FILE[user][error] = 6 ?


 Doesn't work on any file type.

 I've checked the usual suspects. e.g.
 form enctype=multipart/form-data action=_url_ method=\post\ URL is
my
 php file.

 On Wednesday 29 December 2004 01:40, Al wrote:

 What is a $_FILE[user][error]= 6

I can't find Error level 6 in the manual or on Google.

Here is my files array:

[userfile] = Array
 (
  [name] = Readme.txt
  [type] =
  [tmp_name] =
  [error] = 6
  [size] = 0
  )

 Doesn't make sense.  Readme.txt is simply a small text file on my local
HD.

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



Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Matt M.
is form enctype=multipart/form-data action=_url_ method=\post\
what comes out in the html or is it form
enctype=multipart/form-data action=_url_ method=post?

can you upload any files at all?

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



Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-28 Thread Al
I keyed $_FILE[user][error] from memory, and it's wrong.  It really is 
userfile;
Weird problem, eh!
Sebastian wrote:
not sure if its a typo but the array shows userfile and your variable
array shows user
it looks like the file isn't being passed at all, double check if you have
any typos..  type is blank which should at least show the mime type..
- Original Message - 
From: Al [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, December 28, 2004 2:51 PM
Subject: Re: [PHP] $_FILE[user][error] = 6 ?


Doesn't work on any file type.
I've checked the usual suspects. e.g.
form enctype=multipart/form-data action=_url_ method=\post\ URL is
my
php file.
On Wednesday 29 December 2004 01:40, Al wrote:
What is a $_FILE[user][error]= 6
I can't find Error level 6 in the manual or on Google.
Here is my files array:
[userfile] = Array
   (
[name] = Readme.txt
[type] =
[tmp_name] =
[error] = 6
[size] = 0
)
Doesn't make sense.  Readme.txt is simply a small text file on my local
HD.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php