Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
To Snake~eyes or other PHP developer


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
08-Jul-2002, 07:25 AM #1
To Snake~eyes or other PHP developer
hey guys,
do you think you ould check this out and maybe see if you can help me??

http://siteownersforums.com/showthre...&threadid=1474

thanks
Snake~eyes's Avatar
Senior Member with 639 posts.
 
Join Date: Apr 2002
08-Jul-2002, 12:17 PM #2
sure.. okay..

well for that one question, you want to count the ammount of files

PHP Code:
//define the path as relative
$path "/home/yoursite/public_html/whatever";
//using the opendir function
$dir_handle = @opendir($path);
//running the while loop
while (readdir($dir_handle)) {
        
$counter++;
}
//closing the directory
closedir($dir_handle);
?> 
only problem with this is that this counts folders inside the directory too.

all you have to do is change the $path variable

i hope that helps

Last edited by Snake~eyes : 08-Jul-2002 12:24 PM.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:58 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.