Welcome to the Small Business Ideas Forum! We are a community of over 100,000 small business folks with over 163,000 posts for you to browse. We pride ourselves on being the friendliest forum you will find and we'd love to have you as a member of our community. Please take a moment and register for a free account. If you need any help, please contact Chris Logan.

Small Business Ideas Forum

Small Business Ideas Forum

A friendly place to share small business ideas and knowledge, ask questions, find help and encourage others that are involved in the small business industry. Topics include small business marketing, generating revenue and small business computing.

Go Back   Small Business Ideas Forum > Small Business Computing > Website Development
Register Search Today's Posts Mark Forums Read

Thread Tools
Old 6th June 2013, 11:03 AM   #1

Join Date: Apr 2013
Location: Sydney
Posts: 36
Default PHP Function To Count Number Of Files In Directory.

Hello Guys,
I need a php function script to count files in directory, please help me ans share your suggestion.
Need help with image upload and manipulation.
I need to be able to add a feature to a page that I'm creating. The page will allow the user to upload 5 images. The images then need to be resized to a specific height. The box that I'm fitting the images into is smaller than the images will be so I need to be able to center the picture in the box and crop

off the left and right sides. None of the manipulation needs to be saved as a new image file, it just needs to be able to display on the screen like this and the user will then print out the page.

binarynpixel is offline   Reply With Quote
Register or log in to remove this ad.
Old 6th June 2013, 12:15 PM   #2
steve henderson
steve henderson's Avatar

Join Date: May 2013
Location: 281, Streamwood. IL
Posts: 11
Default here

function dirCount($dir) {
$x = 0;
while (($file = readdir($dir)) !== false) {
if (isImage($file)) {$x = $x + 1}
return $x;

steve henderson is offline   Reply With Quote


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Management Issue: Allow Users To Edit Certain Files But Hide The Rest. ranga227 Website Development 2 23rd June 2009 05:43 PM
Easy Backups with WinZip StupidScript Computer Security 0 9th December 2005 06:51 PM

Thread Tools

Get Updates
RSS Feeds:
RSS Feed for Website Development RSS for this Category Only: Website Development

RSS Feed for Small Business Ideas Forum RSS for Entire Forum
Forum Rules

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Small Business Ideas Forum

At Your Business - Small Business Directory
Free Business Forms - Prewritten Documents
Search Engine Guide
Small business guide to search marketing

Small Business Brief
Fetching the Best Small Business Info

Used Values - Free Links
Blue Book

All times are GMT -5. The time now is 07:44 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004 - 2018 - Privacy