ohhhh of course !!
mine won't work in !UNIX ;-)

On Fri, 27 Dec 2002, Johannes Schlueter wrote:

> On Friday 27 December 2002 21:46, Maciek Ruckgaber Bielecki wrote:
> > depending on what you need, sometimes this does the trick for me :-)
> >
> >            exec("ls path/",$files);
> >
> >                 foreach($files as $value)
> >                 {
> >                   $elem .= $value."\n";
> >                 }
> >
> >                echo $elem;
>
> This should
>
> <?php
>   $i=0;
>   if ($dir = opendir('/insert/directory/name/here')) {
>     while (($file = readdir($dir)) !== false) {
>       $i++;
>     }
>     closedir($dir);
>   }
> ?>
> (ok, this one counts even . and ..)
> johannes
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to