Page 1 of 1

scanning folder

Posted: Thu Jul 04, 2002 1:51 am
by DJ P@CkMaN
hey all,
i need help as i am new to PHP but i need this and its too hard for me :P 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

Posted: Thu Jul 04, 2002 2:03 am
by twigletmac
Have a look at PHP's directory functions, you may want to start with this one.

Mac