FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP variables eg. $_FILES
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP variables eg. $_FILES [message #169409] Fri, 10 September 2010 16:03 Go to next message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma: 0
Member
I'm reading about th $_FILES variable and that it is an associative
array. If I look at the PHP.net site(http://php.net/manual/en/
reserved.variables.files.php) it does not discuss what values can be
in this or what the various keys may mean. More searching finds this
page (http://www.php.net/manual/en/features.file-upload.post-
method.php) that mentions "content from the example, above."

Does this mean that the variable (or array) can under other
circumstances have other key/value pairs? Is this a defined thing or
is it open-ended?

I find these things very confusing and would appreciate some
clarification.

Thanks.
Re: PHP variables eg. $_FILES [message #169410 is a reply to message #169409] Fri, 10 September 2010 16:27 Go to previous messageGo to next message
Marious Barrier is currently offline  Marious Barrier
Messages: 25
Registered: September 2010
Karma: 0
Junior Member
On 09/10/2010 12:03 PM, MikeB wrote:
> I'm reading about th $_FILES variable and that it is an associative
> array. If I look at the PHP.net site(http://php.net/manual/en/
> reserved.variables.files.php) it does not discuss what values can be
> in this or what the various keys may mean. More searching finds this
> page (http://www.php.net/manual/en/features.file-upload.post-
> method.php) that mentions "content from the example, above."
>
> Does this mean that the variable (or array) can under other
> circumstances have other key/value pairs? Is this a defined thing or
> is it open-ended?
>
> I find these things very confusing and would appreciate some
> clarification.
>
> Thanks.

http://php.net/manual/en/features.file-upload.post-method.php

Read that one.
Re: PHP variables eg. $_FILES [message #169411 is a reply to message #169410] Fri, 10 September 2010 18:25 Go to previous messageGo to next message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma: 0
Member
On Sep 10, 11:27 am, Marious Barrier <marious.barr...@gmail.com>
wrote:
> On 09/10/2010 12:03 PM, MikeB wrote:
>
>> I'm reading about th $_FILES variable and that it is an associative
>> array. If I look at the PHP.net site(http://php.net/manual/en/
>> reserved.variables.files.php) it does not discuss what values can be
>> in this or what the various keys may mean. More searching finds this
>> page (http://www.php.net/manual/en/features.file-upload.post-
>> method.php) that mentions "content from the example, above."
>
>> Does this mean that the variable (or array) can under other
>> circumstances have other key/value pairs? Is this a defined thing or
>> is it open-ended?
>
>> I find these things very confusing and would appreciate some
>> clarification.
>
>> Thanks.
>
> http://php.net/manual/en/features.file-upload.post-method.php
>
> Read that one.



Well, yes, that's the one I linked and quoted.
Re: PHP variables eg. $_FILES [message #169412 is a reply to message #169411] Fri, 10 September 2010 18:34 Go to previous messageGo to next message
Marious Barrier is currently offline  Marious Barrier
Messages: 25
Registered: September 2010
Karma: 0
Junior Member
On 09/10/2010 02:25 PM, MikeB wrote:
> On Sep 10, 11:27 am, Marious Barrier<marious.barr...@gmail.com>
> wrote:
>> On 09/10/2010 12:03 PM, MikeB wrote:
>>
>>> I'm reading about th $_FILES variable and that it is an associative
>>> array. If I look at the PHP.net site(http://php.net/manual/en/
>>> reserved.variables.files.php) it does not discuss what values can be
>>> in this or what the various keys may mean. More searching finds this
>>> page (http://www.php.net/manual/en/features.file-upload.post-
>>> method.php) that mentions "content from the example, above."
>>
>>> Does this mean that the variable (or array) can under other
>>> circumstances have other key/value pairs? Is this a defined thing or
>>> is it open-ended?
>>
>>> I find these things very confusing and would appreciate some
>>> clarification.
>>
>>> Thanks.
>>
>> http://php.net/manual/en/features.file-upload.post-method.php
>>
>> Read that one.
>
>
>
> Well, yes, that's the one I linked and quoted.

Ah you are right, I got confused with the color change in my client.
It is pretty clear, what part in there makes you think that it might
change in the future?
Re: PHP variables eg. $_FILES [message #169413 is a reply to message #169412] Fri, 10 September 2010 19:07 Go to previous messageGo to next message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma: 0
Member
On Sep 10, 1:34 pm, Marious Barrier <marious.barr...@gmail.com> wrote:
> On 09/10/2010 02:25 PM, MikeB wrote:
>
>
>
>> On Sep 10, 11:27 am, Marious Barrier<marious.barr...@gmail.com>
>> wrote:
>>> On 09/10/2010 12:03 PM, MikeB wrote:
>
>>>> I'm reading about th $_FILES variable and that it is an associative
>>>> array. If I look at the PHP.net site(http://php.net/manual/en/
>>>> reserved.variables.files.php) it does not discuss what values can be
>>>> in this or what the various keys may mean. More searching finds this
>>>> page (http://www.php.net/manual/en/features.file-upload.post-
>>>> method.php) that mentions "content from the example, above."
>
>>>> Does this mean that the variable (or array) can under other
>>>> circumstances have other key/value pairs? Is this a defined thing or
>>>> is it open-ended?
>
>>>> I find these things very confusing and would appreciate some
>>>> clarification.
>
>>>> Thanks.
>
>>> http://php.net/manual/en/features.file-upload.post-method.php
>
>>> Read that one.
>
>> Well, yes, that's the one I linked and quoted.
>
> Ah you are right, I got confused with the color change in my client.
> It is pretty clear, what part in there makes you think that it might
> change in the future?

The text I quoted implies that those elements in the array applies in
some way to the example and that it might be different in other
instances. Maybe I'm just reading too much into the text.
Re: PHP variables eg. $_FILES [message #169416 is a reply to message #169413] Fri, 10 September 2010 20:02 Go to previous messageGo to next message
Marious Barrier is currently offline  Marious Barrier
Messages: 25
Registered: September 2010
Karma: 0
Junior Member
On 09/10/2010 03:07 PM, MikeB wrote:
> On Sep 10, 1:34 pm, Marious Barrier<marious.barr...@gmail.com> wrote:
>> On 09/10/2010 02:25 PM, MikeB wrote:
>>
>>
>>
>>> On Sep 10, 11:27 am, Marious Barrier<marious.barr...@gmail.com>
>>> wrote:
>>>> On 09/10/2010 12:03 PM, MikeB wrote:
>>
>>>> > I'm reading about th $_FILES variable and that it is an associative
>>>> > array. If I look at the PHP.net site(http://php.net/manual/en/
>>>> > reserved.variables.files.php) it does not discuss what values can be
>>>> > in this or what the various keys may mean. More searching finds this
>>>> > page (http://www.php.net/manual/en/features.file-upload.post-
>>>> > method.php) that mentions "content from the example, above."
>>
>>>> > Does this mean that the variable (or array) can under other
>>>> > circumstances have other key/value pairs? Is this a defined thing or
>>>> > is it open-ended?
>>
>>>> > I find these things very confusing and would appreciate some
>>>> > clarification.
>>
>>>> > Thanks.
>>
>>>> http://php.net/manual/en/features.file-upload.post-method.php
>>
>>>> Read that one.
>>
>>> Well, yes, that's the one I linked and quoted.
>>
>> Ah you are right, I got confused with the color change in my client.
>> It is pretty clear, what part in there makes you think that it might
>> change in the future?
>
> The text I quoted implies that those elements in the array applies in
> some way to the example and that it might be different in other
> instances. Maybe I'm just reading too much into the text.
>

I think yes, the keys are the same, their values change depending on
what you are uploading, and it success uploading.
Re: PHP variables eg. $_FILES [message #169417 is a reply to message #169413] Fri, 10 September 2010 20:30 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article
<b529cd6d-af92-4a18-8192-4132e0955c5b(at)y31g2000vbt(dot)googlegroups(dot)com>,
MikeB <mpbrede(at)gmail(dot)com> wrote:

> On Sep 10, 1:34
Re: PHP variables eg. $_FILES [message #169419 is a reply to message #169417] Sat, 11 September 2010 17:28 Go to previous messageGo to next message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma: 0
Member
On Sep 10, 3:30 pm, Tim Streater <timstrea...@waitrose.com> wrote:
> In article
> <b529cd6d-af92-4a18-8192-4132e0955...@y31g2000vbt.googlegroups.com>,
>
>
>
>  MikeB <mpbr...@gmail.com> wrote:
>> On Sep 10, 1:34 pm, Marious Barrier <marious.barr...@gmail.com> wrote:
>>> On 09/10/2010 02:25 PM, MikeB wrote:
>
>>>> On Sep 10, 11:27 am, Marious Barrier<marious.barr...@gmail.com>
>>>> wrote:
>>>> > On 09/10/2010 12:03 PM, MikeB wrote:
>
>>>> >> I'm reading about th $_FILES variable and that it is an associative
>>>> >> array. If I look at the PHP.net site(http://php.net/manual/en/
>>>> >> reserved.variables.files.php) it does not discuss what values can be
>>>> >> in this or what the various keys may mean. More searching finds this
>>>> >> page (http://www.php.net/manual/en/features.file-upload.post-
>>>> >> method.php) that mentions "content from the example, above."
>
>>>> >> Does this mean that the variable (or array) can under other
>>>> >> circumstances have other key/value pairs? Is this a defined thing or
>>>> >> is it open-ended?
>
>>>> >> I find these things very confusing and would appreciate some
>>>> >> clarification.
>
>>>> >> Thanks.
>
>>>> >http://php.net/manual/en/features.file-upload.post-method.php
>
>>>> > Read that one.
>
>>>> Well, yes, that's the one I linked and quoted.
>
>>> Ah you are right, I got confused with the color change in my client.
>>> It is pretty clear, what part in there makes you think that it might
>>> change in the future?
>
>> The text I quoted implies that those elements in the array applies in
>> some way to the example and that it might be different in other
>> instances. Maybe I'm just reading too much into the text.
>
> My reading of it is exactly that - it says it, not just implying it. So
> if the example given had:
>
>     Send this file: <input name="wiggy" type="file" />
>
> you'd be looking at:
>
> $_FILES['wiggy']['name']
>

I see. But the 5 subordinate keys ('name', 'type', 'size', 'tmp-name',
and 'error') are the only keys and they remain the full and entire set
with no other elements being possible?
Re: PHP variables eg. $_FILES [message #169420 is a reply to message #169419] Sat, 11 September 2010 18:07 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article
<f9ecf437-bf08-4b91-8acc-feb68fdecafb(at)c21g2000vba(dot)googlegroups(dot)com>,
MikeB <mpbrede(at)gmail(dot)com> wrote:

> On Sep 10, 3:30
Re: PHP variables eg. $_FILES [message #169435 is a reply to message #169419] Mon, 13 September 2010 04:57 Go to previous messageGo to next message
Adam Harvey is currently offline  Adam Harvey
Messages: 25
Registered: September 2010
Karma: 0
Junior Member
On Sat, 11 Sep 2010 10:28:38 -0700, MikeB wrote:
> I see. But the 5 subordinate keys ('name', 'type', 'size', 'tmp-name',
> and 'error') are the only keys and they remain the full and entire set
> with no other elements being possible?

They're the set of keys that PHP itself guarantees. Since extensions can
(and sometimes do) hook into the file upload routines, they could add
other keys as well, if they chose to.

Adam
Re: PHP variables eg. $_FILES [message #169443 is a reply to message #169435] Mon, 13 September 2010 10:49 Go to previous message
Piyush Gupta is currently offline  Piyush Gupta
Messages: 6
Registered: September 2010
Karma: 0
Junior Member
On Sep 13, 9:57 am, Adam Harvey <use...@adamharvey.name> wrote:
> On Sat, 11 Sep 2010 10:28:38 -0700, MikeB wrote:
>> I see. But the 5 subordinate keys ('name', 'type', 'size', 'tmp-name',
>> and 'error') are the only keys and they remain the full and entire set
>> with no other elements being possible?
>
> They're the set of keys that PHP itself guarantees. Since extensions can
> (and sometimes do) hook into the file upload routines, they could add
> other keys as well, if they chose to.
>
> Adam

Hi ,

We at www.rntlabs.com [RNTLABS Software Solutions] have exciting
openings for the below

1/ PHP
2/ Designers
3/ Android
4/ iPhone
5/ QA
6/ ROR

Please apply at hr(at)rntlabs(dot)com ASAP .

Thanks

Piyush Gupta
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Session Cache
Next Topic: Job opening at RNT Labs Chandigarh
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 15:31:02 GMT 2024

Total time taken to generate the page: 0.02836 seconds