scanning folder

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DJ P@CkMaN
Forum Newbie
Posts: 1
Joined: Thu Jul 04, 2002 1:51 am

scanning folder

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have a look at PHP's directory functions, you may want to start with this one.

Mac
Post Reply