CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 return total number of files

Print topic Send  topic

Author Message
wanaka
Posted: 11/19/2002, 11:43 PM

I have a directory with lot of gif all start with graph.gif graph001.gif graph002.gif, graph003.gif...
I would like to return total number of files that match the dir graph*.gif command.

Is there any function in php to count total number of file
xbill
Posted: 11/20/2002, 7:49 AM

In php - the platform independent directory calls
include:

dir(), opendir(), readdir()

There are some examples of how to use these functions
on the php site- http://www.php.net

The main thing to watch out for is that the
directory calls are server side- ie your PHP
code runs on the directory on the server not
your local directory.

To include them in CCS- use custom events and
set a label with the result count of the custom
code.

-bill

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.