Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 28/02/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, February 27, 2007 3:47 pm, Dotan Cohen wrote: > On 27/02/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> On Tue, 2007-02-27 at 09:05 -0500, Al wrote: >> > A good php editor, with code completion, will help prevent this. >> >> A decen

Re: [PHP] Populating array with function

2007-02-27 Thread Richard Lynch
On Tue, February 27, 2007 3:47 pm, Dotan Cohen wrote: > On 27/02/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> On Tue, 2007-02-27 at 09:05 -0500, Al wrote: >> > A good php editor, with code completion, will help prevent this. >> >> A decent brain with ample memory will suffice also. Upgrade pac

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: > A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not available (yet) :) Cheers, Rob. I've run "yum -y up

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Al <[EMAIL PROTECTED]> wrote: A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. As soon as the Linux version comes out I'll be sure to give it a whirl. Thanks.

Re: [PHP] Populating array with function

2007-02-27 Thread Richard Lynch
Or just turning on E_NOTICE, which you should do anyway. On Tue, February 27, 2007 8:05 am, Al wrote: > A good php editor, with code completion, will help prevent this. > > I like phpEdit. It even has a built-in syntax checker, which would > have caught > your error immediately. > > Dotan Cohen w

Re: [PHP] Populating array with function

2007-02-27 Thread Al
I always wondered if anyone had a perfect brain. Us ordinary mortals require help. Robert Cummings wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not ava

Re: [PHP] Populating array with function

2007-02-27 Thread Robert Cummings
On Tue, 2007-02-27 at 09:05 -0500, Al wrote: > A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not available (yet) :) Cheers, Rob. > > I like phpEdit. It even has a built-in syntax checker, which would have

Re: [PHP] Populating array with function

2007-02-27 Thread Al
A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. Dotan Cohen wrote: On 27/02/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 27/02/07, Brad Bonkoski <[EM

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 27/02/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: >> perhaps look into the array_push() function http://www.php.net/array_push >> > > Thanks, but I cannot use array_push() as I don't know the name of the > array that I'l

Re: [PHP] Populating array with function

2007-02-27 Thread Jochem Maas
Dotan Cohen wrote: > On 27/02/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: >> perhaps look into the array_push() function http://www.php.net/array_push >> > > Thanks, but I cannot use array_push() as I don't know the name of the > array that I'll be pushing to. There are four calls to the listFile

Re: [PHP] Populating array with function

2007-02-27 Thread Dave Goodchild
You have a typo in your code...

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Arpad Ray <[EMAIL PROTECTED]> wrote: The code is fine, spot the typo. Ah! Found it! $thumbnailFiles=listFiles($thumbnailsDirector Should have been: $thumbnailsFiles=listFiles($thumbnailsDirector Thanks. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/181/erasure.html ht

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: perhaps look into the array_push() function http://www.php.net/array_push Thanks, but I cannot use array_push() as I don't know the name of the array that I'll be pushing to. There are four calls to the listFiles function, and each will pop

Re: [PHP] Populating array with function

2007-02-27 Thread Arpad Ray
Brad Bonkoski wrote: $files[] = $entry; perhaps look into the array_push() function http://www.php.net/array_push $files[] = $entry; is perfectly fine. $thumbnailFiles=listFiles($thumbnailsDirectory); print""; print_r($thumbnailsFiles); print""; The code is fine, spot the typ

Re: [PHP] Populating array with function

2007-02-27 Thread Brad Bonkoski
Dotan Cohen wrote: I need to populate an array with the contents of a directory. The following code does not populate the $thumbnailFiles array like I expect that it would: read()) { if ( !is_dir($entry) ) { $files[] = $entry; perhaps look into the array_push() function htt