php-windows Digest 10 Sep 2006 04:01:09 -0000 Issue 3035

Topics (messages 27139 through 27139):

Re: [Linux dev] Undefined variables
        27139 by: Alf Stockton

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hendrik Visage wrote:
> On 9/8/06, Alf Stockton <[EMAIL PROTECTED]> wrote:
>> In this little script:-
>>
>> <?php
>> session_start();
>> //read folder
>> $folder=opendir(".");
>> while ($file = readdir($folder))
>> $names[count($names)] = $file;  // <----- Line 8
>
> Obviously $names won't be defined in the initial state the first time
> this line
> is hit, thus count($names) would/should be undefined...
>
Interesting that this works on versions of Windows PHP previous to 5.1.6

-- 
Regards,
Alf Stockton            www.stockton.co.za
 
Big book, big bore.
                -- Callimachus
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---

Reply via email to