File Upload

Hello,

When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
set and when debugging I get the following error although /tmp folder exists
and the permissions are set to 777:

$_FILES['userfile']['error'] = 6

which says

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

Has anyone encountered such a problem or has a clue as to what the cause
could be?

Thank you.

Kind regards

Ali


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ali Reza Sajedi [ Sa, 30 Januar 2010 12:27 ] [ ID #2030658 ]

Re: File Upload

Ali Reza Sajedi wrote on 30/01/2010 12:27:

> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
> 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause
> could be?

What does "print phpinfo()"; tell you about the upload_tmp_dir?

--
Kind regards
Kim Emax - masterminds.dk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kim Madsen [ Sa, 30 Januar 2010 13:20 ] [ ID #2030659 ]

Re: File Upload

--001636c5961db3c770047e60cb98
Content-Type: text/plain; charset=UTF-8

On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi <arsajedi [at] khanehjou.com>wrote:

> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
> set and when debugging I get the following error although /tmp folder exists
> and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
> which says
>
> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
> 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause
> could be?
>
>
It might be the upload_tmp_dir no pointing to the right dir !
What is the current of it ?



Regards,
Eric,



Thank you.
>
> Kind regards
>
> Ali
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--001636c5961db3c770047e60cb98--
Eric Lee [ Sa, 30 Januar 2010 13:21 ] [ ID #2030660 ]

Re: File Upload

------=_NextPart_000_0020_01CAA1BA.2EA33F80
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for your replys.

In php.ini upload_tmp_dir is not set, so that the system should use its =
default tmp folder.

It used to work properly. But, after a system update from centos5.3 to =
centos5.4 this malfunction is now observed.

Any idea?

Kind regards

Ali


----- Original Message -----
From: Eric Lee
To: Ali Reza Sajedi
Cc: phpList list
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload





On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi =
<arsajedi [at] khanehjou.com> wrote:

Hello,

When uploading a file the variable $_FILES['userfile']['tmp_name'] =
is not set and when debugging I get the following error although /tmp =
folder exists and the permissions are set to 777:

$_FILES['userfile']['error'] =3D 6

which says

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

Has anyone encountered such a problem or has a clue as to what the =
cause could be?



It might be the upload_tmp_dir no pointing to the right dir !
What is the current of it ?



Regards,
Eric,




Thank you.

Kind regards

Ali

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




------=_NextPart_000_0020_01CAA1BA.2EA33F80--
Ali Reza Sajedi [ Sa, 30 Januar 2010 14:40 ] [ ID #2030662 ]

Re: File Upload

--=-24jfHGid32wF5wjAUcK5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sat, 2010-01-30 at 14:40 +0100, Ali Reza Sajedi wrote:

> Thank you for your replys.
>
> In php.ini upload_tmp_dir is not set, so that the system should use its default tmp folder.
>
> It used to work properly. But, after a system update from centos5.3 to centos5.4 this malfunction is now observed.
>
> Any idea?
>
> Kind regards
>
> Ali
>
>
> ----- Original Message -----
> From: Eric Lee
> To: Ali Reza Sajedi
> Cc: phpList list
> Sent: Saturday, January 30, 2010 1:21 PM
> Subject: Re: [PHP] File Upload
>
>
>
>
>
> On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi <arsajedi [at] khanehjou.com> wrote:
>
> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not set and when debugging I get the following error although /tmp folder exists and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
> which says
>
> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause could be?
>
>
>
> It might be the upload_tmp_dir no pointing to the right dir !
> What is the current of it ?
>
>
>
> Regards,
> Eric,
>
>
>
>
> Thank you.
>
> Kind regards
>
> Ali
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


The upgrade just changed the setting. If you set this in your php.ini,
it should work again.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-24jfHGid32wF5wjAUcK5--
Ashley Sheridan [ Sa, 30 Januar 2010 14:51 ] [ ID #2030663 ]
PHP » gmane.comp.php.general » File Upload

Vorheriges Thema: how do I use php://memory?
Nächstes Thema: Pointers For Newbies, Reminders For Oldies