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 wrote: >> On 27/02/07, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote: >>> Dotan Cohen wrote: >>> > On 27/02/07, Brad Bonkoski <bbonkoski@xxxxxxxxxxxxxx> 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 populate a different array. >>> >>> the use of array_push() is not needed but the premise that it >>> cannot >>> be used is wrong - the array inside the function is always called >>> $files. >>> >>> your problem is due to a simple typo, you could have checked the >>> actual return >>> value of the function and seen that it does return the array: >>> >>> var_dump( listFiles($thumbnailsDirectory) ); >>> >> >> That's what I was doing with this code: >> print"<pre>"; >> print_r($thumbnailsFiles); >> print"</pre>"; >> >> Thanks, all. Silly typo does it every time! >> >> Dotan Cohen >> >> http://what-is-what.com/what_is/xmp.html >> http://lyricslist.com/lyrics/artist_albums/287/k_s_choice.html > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php