hey all,
i need help as i am new to PHP but i need this and its too hard for me

i have a page that users can upload images into a folder called
/upload and what i need is for a PHP script to find how many files are in the upload dir and save that to a variable so my scrip i have already done knows how many pics and then saves the pics name into a variable to be displayed in the image gallery.
thanks heaps