problems with $_FILES
am 14.01.2008 23:52:33 von yawnmoth
I'm trying to write a script that'll let me upload a *.xls file and am
having some difficulties. Here are the contents of $_FILE:
Array
(
[filename] => Array
(
[name] => filename.xls
[type] =>
[tmp_name] =>
[error] => 2
[size] => 0
)
)
As you can observe, there's no tmp_name set and error is set to 2.
What does this mean? How can I fix it? There doesn't seem to be a
whole lot of documentation on it on php.net:
http://us3.php.net/manual/en/reserved.variables.php#reserved .variables.files
Thanks!
Array ( [filename] => Array ( [name] => filename.xls [type] =>
[tmp_name] => [error] => 2 [size] => 0 ) )
Re: problems with $_FILES
am 14.01.2008 23:58:15 von luiheidsgoeroe
On Mon, 14 Jan 2008 23:52:33 +0100, yawnmoth wrote=
:
> I'm trying to write a script that'll let me upload a *.xls file and am=
> having some difficulties. Here are the contents of $_FILE:
>
> Array
> (
> [filename] =3D> Array
> (
> [name] =3D> filename.xls
> [type] =3D>
> [tmp_name] =3D>
> [error] =3D> 2
> [size] =3D> 0
> )
> )
>
> As you can observe, there's no tmp_name set and error is set to 2.
> What does this mean? How can I fix it? There doesn't seem to be a
> whole lot of documentation on it on php.net:
Hmmm, there's some obscure reference in the manual about something calle=
d =
'file uploads'.
http://nl.php.net/manual/en/features.file-upload.php
http://nl.php.net/manual/en/features.file-upload.errors.php
UPLOAD_ERR_FORM_SIZE
Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was=
=
specified in the HTML form.
-- =
Rik Wasmus
Re: problems with $_FILES
am 14.01.2008 23:58:17 von ivansanchez-alg
yawnmoth wrote:
> As you can observe, there's no tmp_name set and error is set to 2.
> What does this mean?
http://php.net/manual/en/features.file-upload.errors.php
Regards,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Chicken Little only has to be right once.
Re: problems with $_FILES
am 15.01.2008 00:04:42 von Jerry Stuckle
yawnmoth wrote:
> I'm trying to write a script that'll let me upload a *.xls file and am
> having some difficulties. Here are the contents of $_FILE:
>
> Array
> (
> [filename] => Array
> (
> [name] => filename.xls
> [type] =>
> [tmp_name] =>
> [error] => 2
> [size] => 0
> )
> )
>
> As you can observe, there's no tmp_name set and error is set to 2.
> What does this mean? How can I fix it? There doesn't seem to be a
> whole lot of documentation on it on php.net:
>
> http://us3.php.net/manual/en/reserved.variables.php#reserved .variables.files
>
> Thanks!
> Array ( [filename] => Array ( [name] => filename.xls [type] =>
> [tmp_name] => [error] => 2 [size] => 0 ) )
>
http://us.php.net/manual/en/features.file-upload.errors.php
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: problems with $_FILES
am 15.01.2008 00:08:17 von Paul Lautman
yawnmoth wrote:
> I'm trying to write a script that'll let me upload a *.xls file and am
> having some difficulties. Here are the contents of $_FILE:
>
> Array
> (
> [filename] => Array
> (
> [name] => filename.xls
> [type] =>
> [tmp_name] =>
> [error] => 2
> [size] => 0
> )
> )
>
> As you can observe, there's no tmp_name set and error is set to 2.
> What does this mean? How can I fix it? There doesn't seem to be a
> whole lot of documentation on it on php.net:
>
> http://us3.php.net/manual/en/reserved.variables.php#reserved .variables.files
>
> Thanks!
> Array ( [filename] => Array ( [name] => filename.xls [type] =>
> [tmp_name] => [error] => 2 [size] => 0 ) )
I went to google and typed
php file upload errors
and clicked "I'm Feeling Lucky" and was taken straight to a page of the
manual with a link right at the top entitled "Error Messages Explained"
Was that really beyond you?
Re: problems with $_FILES
am 15.01.2008 03:53:22 von yawnmoth
On Jan 14, 5:08 pm, "Paul Lautman"
wrote:
> yawnmoth wrote:
> > I'm trying to write a script that'll let me upload a *.xls file and am
> > having some difficulties. Here are the contents of $_FILE:
>
> > Array
> > (
> > [filename] => Array
> > (
> > [name] => filename.xls
> > [type] =>
> > [tmp_name] =>
> > [error] => 2
> > [size] => 0
> > )
> > )
>
> > As you can observe, there's no tmp_name set and error is set to 2.
> > What does this mean? How can I fix it? There doesn't seem to be a
> > whole lot of documentation on it on php.net:
>
> >http://us3.php.net/manual/en/reserved.variables.php#reserve d.variable...
>
> > Thanks!
> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
> > [tmp_name] => [error] => 2 [size] => 0 ) )
>
> I went to google and typed
> php file upload errors
> and clicked "I'm Feeling Lucky" and was taken straight to a page of the
> manual with a link right at the top entitled "Error Messages Explained"
> Was that really beyond you?
Apparently it's beyond you. April 17, 2006:
http://groups.google.com/group/comp.lang.php/msg/0fa08f908c9 ec331?dmode=source
I went to google and typed "short open tag php" and clicked "I'm
Feeling Lucky" and was taken straight to the appropriate page. Was
that really beyond you?
Re: problems with $_FILES
am 15.01.2008 09:30:37 von Paul Lautman
yawnmoth wrote:
> On Jan 14, 5:08 pm, "Paul Lautman"
> wrote:
>> yawnmoth wrote:
>> > I'm trying to write a script that'll let me upload a *.xls file
>> > and am having some difficulties. Here are the contents of $_FILE:
>>
>> > Array
>> > (
>> > [filename] => Array
>> > (
>> > [name] => filename.xls
>> > [type] =>
>> > [tmp_name] =>
>> > [error] => 2
>> > [size] => 0
>> > )
>> > )
>>
>> > As you can observe, there's no tmp_name set and error is set to 2.
>> > What does this mean? How can I fix it? There doesn't seem to be a
>> > whole lot of documentation on it on php.net:
>>
>> >http://us3.php.net/manual/en/reserved.variables.php#reserve d.variable...
>>
>> > Thanks!
>> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
>> > [tmp_name] => [error] => 2 [size] => 0 ) )
>>
>> I went to google and typed
>> php file upload errors
>> and clicked "I'm Feeling Lucky" and was taken straight to a page of
>> the manual with a link right at the top entitled "Error Messages
>> Explained" Was that really beyond you?
>
> Apparently it's beyond you. April 17, 2006:
>
> http://groups.google.com/group/comp.lang.php/msg/0fa08f908c9 ec331?dmode=source
>
> I went to google and typed "short open tag php" and clicked "I'm
> Feeling Lucky" and was taken straight to the appropriate page. Was
> that really beyond you?
That required one to know that the was called a short open tag.
I simply picked words that you had already used in your post!
Re: problems with $_FILES
am 15.01.2008 11:56:08 von rf
"Paul Lautman" wrote in message
news:5v3997F1krvsfU1@mid.individual.net...
> yawnmoth wrote:
>> Apparently it's beyond you.
> I simply picked words that you had already used in your post!
It is *amazing* how often plugging some newbies subject line into google
reveals, in the first or second hit, the exact answer to the posed question.
I get away with advising them of this about about once a month :-)
A step below that is as you did, pick the relevant keywords out of the post
body. That one can do several times a week.
The OP's usually don't like it of course.
However I've never encountered one like this OP here who has dug up stuff
from the past (from a thread which I actually remember) with which to
present a strawman argument :-)
--
Richard.
Re: problems with $_FILES
am 15.01.2008 12:14:03 von Captain Paralytic
On 15 Jan, 10:56, "rf" wrote:
> "Paul Lautman" wrote in message
>
> news:5v3997F1krvsfU1@mid.individual.net...
>
> > yawnmoth wrote:
> >> Apparently it's beyond you.
> > I simply picked words that you had already used in your post!
>
> It is *amazing* how often plugging some newbies subject line into google
> reveals, in the first or second hit, the exact answer to the posed question.
> I get away with advising them of this about about once a month :-)
>
> A step below that is as you did, pick the relevant keywords out of the post
> body. That one can do several times a week.
>
> The OP's usually don't like it of course.
>
> However I've never encountered one like this OP here who has dug up stuff
> from the past (from a thread which I actually remember) with which to
> present a strawman argument :-)
>
> --
> Richard.
But the difference between the two cases was too subtle for him to
work out.
The name of this delimiter format was given to me in the reply to that
post.
Since I didn't know the words I could not know to search for them.
I think this poster is doomed to always have to ask for help!
Re: problems with $_FILES
am 15.01.2008 14:49:36 von yawnmoth
On Jan 15, 2:30 am, "Paul Lautman"
wrote:
> yawnmoth wrote:
> > On Jan 14, 5:08 pm, "Paul Lautman"
> > wrote:
> >> yawnmoth wrote:
> >> > I'm trying to write a script that'll let me upload a *.xls file
> >> > and am having some difficulties. Here are the contents of $_FILE:
>
> >> > Array
> >> > (
> >> > [filename] => Array
> >> > (
> >> > [name] => filename.xls
> >> > [type] =>
> >> > [tmp_name] =>
> >> > [error] => 2
> >> > [size] => 0
> >> > )
> >> > )
>
> >> > As you can observe, there's no tmp_name set and error is set to 2.
> >> > What does this mean? How can I fix it? There doesn't seem to be a
> >> > whole lot of documentation on it on php.net:
>
> >> >http://us3.php.net/manual/en/reserved.variables.php#reserve d.variable...
>
> >> > Thanks!
> >> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
> >> > [tmp_name] => [error] => 2 [size] => 0 ) )
>
> >> I went to google and typed
> >> php file upload errors
> >> and clicked "I'm Feeling Lucky" and was taken straight to a page of
> >> the manual with a link right at the top entitled "Error Messages
> >> Explained" Was that really beyond you?
>
> > Apparently it's beyond you. April 17, 2006:
>
> >http://groups.google.com/group/comp.lang.php/msg/0fa08f908c 9ec331?dmo...
>
> > I went to google and typed "short open tag php" and clicked "I'm
> > Feeling Lucky" and was taken straight to the appropriate page. Was
> > that really beyond you?
>
> That required one to know that the was called a short open tag.
>
> I simply picked words that you had already used in your post!
But I used so many words in my post. When I type "php file upload
tmp_name" into Google (without the double quotes) and click "I'm
feeling lucky" the result I get isn't really all that helpful at all.
With regard to and
obvious to me.
Re: problems with $_FILES
am 15.01.2008 15:07:10 von Captain Paralytic
On 15 Jan, 13:49, yawnmoth wrote:
> On Jan 15, 2:30 am, "Paul Lautman"
> wrote:
>
>
>
> > yawnmoth wrote:
> > > On Jan 14, 5:08 pm, "Paul Lautman"
> > > wrote:
> > >> yawnmoth wrote:
> > >> > I'm trying to write a script that'll let me upload a *.xls file
> > >> > and am having some difficulties. Here are the contents of $_FILE:
>
> > >> > Array
> > >> > (
> > >> > [filename] => Array
> > >> > (
> > >> > [name] => filename.xls
> > >> > [type] =>
> > >> > [tmp_name] =>
> > >> > [error] => 2
> > >> > [size] => 0
> > >> > )
> > >> > )
>
> > >> > As you can observe, there's no tmp_name set and error is set to 2.
> > >> > What does this mean? How can I fix it? There doesn't seem to be a
> > >> > whole lot of documentation on it on php.net:
>
> > >> >http://us3.php.net/manual/en/reserved.variables.php#reserve d.variable...
>
> > >> > Thanks!
> > >> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
> > >> > [tmp_name] => [error] => 2 [size] => 0 ) )
>
> > >> I went to google and typed
> > >> php file upload errors
> > >> and clicked "I'm Feeling Lucky" and was taken straight to a page of
> > >> the manual with a link right at the top entitled "Error Messages
> > >> Explained" Was that really beyond you?
>
> > > Apparently it's beyond you. April 17, 2006:
>
> > >http://groups.google.com/group/comp.lang.php/msg/0fa08f908c 9ec331?dmo...
>
> > > I went to google and typed "short open tag php" and clicked "I'm
> > > Feeling Lucky" and was taken straight to the appropriate page. Was
> > > that really beyond you?
>
> > That required one to know that the was called a short open tag.
>
> > I simply picked words that you had already used in your post!
>
> But I used so many words in my post. When I type "php file upload
> tmp_name" into Google (without the double quotes) and click "I'm
> feeling lucky" the result I get isn't really all that helpful at all.
>
> With regard to and
> obvious to me.
Your question was about the value of the error field. You said it was
set to 2 and you asked "what does this mean".
It seems far more obvious to me to put 'php file upload errors' into
Google than it would to put 'php file upload tmp_name' in there or to
decide that the name of is "short open tag" which, had I knon what
it was called, I both cold and would have looked up.
You are just reinforcing the view that you will always be one who has
to ask for help as you cannot think clearly enough to help yourself.
Re: problems with $_FILES
am 15.01.2008 15:51:08 von yawnmoth
On Jan 15, 8:07 am, Captain Paralytic wrote:
> On 15 Jan, 13:49, yawnmoth wrote:
>
>
>
> > On Jan 15, 2:30 am, "Paul Lautman"
> > wrote:
>
> > > yawnmoth wrote:
> > > > On Jan 14, 5:08 pm, "Paul Lautman"
> > > > wrote:
> > > >> yawnmoth wrote:
> > > >> > I'm trying to write a script that'll let me upload a *.xls file
> > > >> > and am having some difficulties. Here are the contents of $_FILE:
>
> > > >> > Array
> > > >> > (
> > > >> > [filename] => Array
> > > >> > (
> > > >> > [name] => filename.xls
> > > >> > [type] =>
> > > >> > [tmp_name] =>
> > > >> > [error] => 2
> > > >> > [size] => 0
> > > >> > )
> > > >> > )
>
> > > >> > As you can observe, there's no tmp_name set and error is set to 2.
> > > >> > What does this mean? How can I fix it? There doesn't seem to be a
> > > >> > whole lot of documentation on it on php.net:
>
> > > >> >http://us3.php.net/manual/en/reserved.variables.php#reserve d.variable...
>
> > > >> > Thanks!
> > > >> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
> > > >> > [tmp_name] => [error] => 2 [size] => 0 ) )
>
> > > >> I went to google and typed
> > > >> php file upload errors
> > > >> and clicked "I'm Feeling Lucky" and was taken straight to a page of
> > > >> the manual with a link right at the top entitled "Error Messages
> > > >> Explained" Was that really beyond you?
>
> > > > Apparently it's beyond you. April 17, 2006:
>
> > > >http://groups.google.com/group/comp.lang.php/msg/0fa08f908c 9ec331?dmo...
>
> > > > I went to google and typed "short open tag php" and clicked "I'm
> > > > Feeling Lucky" and was taken straight to the appropriate page. Was
> > > > that really beyond you?
>
> > > That required one to know that the was called a short open tag.
>
> > > I simply picked words that you had already used in your post!
>
> > But I used so many words in my post. When I type "php file upload
> > tmp_name" into Google (without the double quotes) and click "I'm
> > feeling lucky" the result I get isn't really all that helpful at all.
>
> > With regard to and
> > obvious to me.
>
> Your question was about the value of the error field. You said it was
> set to 2 and you asked "what does this mean".
>
> It seems far more obvious to me to put 'php file upload errors' into
> Google than it would to put 'php file upload tmp_name' in there or to
> decide that the name of is "short open tag" which, had I knon what
> it was called, I both cold and would have looked up.
therein lies the problem. what's obvious to one person isn't always
obvious to someone else. "php file upload errors" seems obvious to
you. in hindsight, it seems obvious to me, as well. problem is, in
hindsight, everything seems obvious, per the availability heuristic.
> You are just reinforcing the view that you will always be one who has
> to ask for help as you cannot think clearly enough to help yourself.
so long as i do overcome the problems i encounter, what does it matter
what your view is?
Re: problems with $_FILES
am 15.01.2008 17:59:24 von Captain Paralytic
On 15 Jan, 14:51, yawnmoth wrote:
> so long as i do overcome the problems i encounter, what does it matter
> what your view is?
Because the more people you piss off, the less that are available to
help you in future.
Re: problems with $_FILES
am 15.01.2008 20:38:13 von Jerry Stuckle
yawnmoth wrote:
> On Jan 15, 8:07 am, Captain Paralytic wrote:
>> On 15 Jan, 13:49, yawnmoth wrote:
>>
>>
>>
>>> On Jan 15, 2:30 am, "Paul Lautman"
>>> wrote:
>>>> yawnmoth wrote:
>>>>> On Jan 14, 5:08 pm, "Paul Lautman"
>>>>> wrote:
>>>>>> yawnmoth wrote:
>>>>>>> I'm trying to write a script that'll let me upload a *.xls file
>>>>>>> and am having some difficulties. Here are the contents of $_FILE:
>>>>>>> Array
>>>>>>> (
>>>>>>> [filename] => Array
>>>>>>> (
>>>>>>> [name] => filename.xls
>>>>>>> [type] =>
>>>>>>> [tmp_name] =>
>>>>>>> [error] => 2
>>>>>>> [size] => 0
>>>>>>> )
>>>>>>> )
>>>>>>> As you can observe, there's no tmp_name set and error is set to 2.
>>>>>>> What does this mean? How can I fix it? There doesn't seem to be a
>>>>>>> whole lot of documentation on it on php.net:
>>>>>>> http://us3.php.net/manual/en/reserved.variables.php#reserved .variable...
>>>>>>> Thanks!
>>>>>>> Array ( [filename] => Array ( [name] => filename.xls [type] =>
>>>>>>> [tmp_name] => [error] => 2 [size] => 0 ) )
>>>>>> I went to google and typed
>>>>>> php file upload errors
>>>>>> and clicked "I'm Feeling Lucky" and was taken straight to a page of
>>>>>> the manual with a link right at the top entitled "Error Messages
>>>>>> Explained" Was that really beyond you?
>>>>> Apparently it's beyond you. April 17, 2006:
>>>>> http://groups.google.com/group/comp.lang.php/msg/0fa08f908c9 ec331?dmo...
>>>>> I went to google and typed "short open tag php" and clicked "I'm
>>>>> Feeling Lucky" and was taken straight to the appropriate page. Was
>>>>> that really beyond you?
>>>> That required one to know that the was called a short open tag.
>>>> I simply picked words that you had already used in your post!
>>> But I used so many words in my post. When I type "php file upload
>>> tmp_name" into Google (without the double quotes) and click "I'm
>>> feeling lucky" the result I get isn't really all that helpful at all.
>>> With regard to and
>>> obvious to me.
>> Your question was about the value of the error field. You said it was
>> set to 2 and you asked "what does this mean".
>>
>> It seems far more obvious to me to put 'php file upload errors' into
>> Google than it would to put 'php file upload tmp_name' in there or to
>> decide that the name of is "short open tag" which, had I knon what
>> it was called, I both cold and would have looked up.
>
> therein lies the problem. what's obvious to one person isn't always
> obvious to someone else. "php file upload errors" seems obvious to
> you. in hindsight, it seems obvious to me, as well. problem is, in
> hindsight, everything seems obvious, per the availability heuristic.
>
>> You are just reinforcing the view that you will always be one who has
>> to ask for help as you cannot think clearly enough to help yourself.
>
> so long as i do overcome the problems i encounter, what does it matter
> what your view is?
>
It will matter a lot the next time you come here looking for help.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: problems with $_FILES
am 15.01.2008 22:05:41 von yawnmoth
On Jan 15, 1:38 pm, Jerry Stuckle wrote:
> yawnmoth wrote:
> > On Jan 15, 8:07 am, Captain Paralytic wrote:
> >> On 15 Jan, 13:49, yawnmoth wrote:
>
> >>> On Jan 15, 2:30 am, "Paul Lautman"
> >>> wrote:
> >>>> yawnmoth wrote:
> >>>>> On Jan 14, 5:08 pm, "Paul Lautman"
> >>>>> wrote:
> >>>>>> yawnmoth wrote:
> >>>>>>> I'm trying to write a script that'll let me upload a *.xls file
> >>>>>>> and am having some difficulties. Here are the contents of $_FILE:
> >>>>>>> Array
> >>>>>>> (
> >>>>>>> [filename] => Array
> >>>>>>> (
> >>>>>>> [name] => filename.xls
> >>>>>>> [type] =>
> >>>>>>> [tmp_name] =>
> >>>>>>> [error] => 2
> >>>>>>> [size] => 0
> >>>>>>> )
> >>>>>>> )
> >>>>>>> As you can observe, there's no tmp_name set and error is set to 2.
> >>>>>>> What does this mean? How can I fix it? There doesn't seem to be a
> >>>>>>> whole lot of documentation on it on php.net:
> >>>>>>>http://us3.php.net/manual/en/reserved.variables.php#r eserved.variable...
> >>>>>>> Thanks!
> >>>>>>> Array ( [filename] => Array ( [name] => filename.xls [type] =>
> >>>>>>> [tmp_name] => [error] => 2 [size] => 0 ) )
> >>>>>> I went to google and typed
> >>>>>> php file upload errors
> >>>>>> and clicked "I'm Feeling Lucky" and was taken straight to a page of
> >>>>>> the manual with a link right at the top entitled "Error Messages
> >>>>>> Explained" Was that really beyond you?
> >>>>> Apparently it's beyond you. April 17, 2006:
> >>>>>http://groups.google.com/group/comp.lang.php/msg/0fa08f 908c9ec331?dmo...
> >>>>> I went to google and typed "short open tag php" and clicked "I'm
> >>>>> Feeling Lucky" and was taken straight to the appropriate page. Was
> >>>>> that really beyond you?
> >>>> That required one to know that the was called a short open tag.
> >>>> I simply picked words that you had already used in your post!
> >>> But I used so many words in my post. When I type "php file upload
> >>> tmp_name" into Google (without the double quotes) and click "I'm
> >>> feeling lucky" the result I get isn't really all that helpful at all.
> >>> With regard to and
> >>> obvious to me.
> >> Your question was about the value of the error field. You said it was
> >> set to 2 and you asked "what does this mean".
>
> >> It seems far more obvious to me to put 'php file upload errors' into
> >> Google than it would to put 'php file upload tmp_name' in there or to
> >> decide that the name of is "short open tag" which, had I knon what
> >> it was called, I both cold and would have looked up.
>
> > therein lies the problem. what's obvious to one person isn't always
> > obvious to someone else. "php file upload errors" seems obvious to
> > you. in hindsight, it seems obvious to me, as well. problem is, in
> > hindsight, everything seems obvious, per the availability heuristic.
>
> >> You are just reinforcing the view that you will always be one who has
> >> to ask for help as you cannot think clearly enough to help yourself.
>
> > so long as i do overcome the problems i encounter, what does it matter
> > what your view is?
>
> It will matter a lot the next time you come here looking for help.
fair point. although i still think Paul Lautman and Captain Paralytic
are being unnecessarily condescending and if i get added to their
killfile's, it's just as well. if the cost of getting their
assistance is to put up with their "you're an idiot" comments...
well, it's assistance i'm more then willing to do without.
besides, what happens if i have another question? i'd rather not have
to be afraid, every time i post, that i'm going to be called out for
being an idiot. that attitude might cost me the help of a few select
individuals, but being denied the help of those few individuals is
certainly preferable to being too afraid to ask questions in the first
place.
Re: problems with $_FILES
am 18.01.2008 00:40:36 von Jonas Werres
> Apparently it's beyond you. April 17, 2006:
>
> http://groups.google.com/group/comp.lang.php/msg/0fa08f908c9 ec331?dmode=source
>
> I went to google and typed "short open tag php" and clicked "I'm
> Feeling Lucky" and was taken straight to the appropriate page. Was
> that really beyond you?
Why don't you want help in the future?