PHP help

apps

#1

Hello. This is my first post.

I need some help using a PHP script someone gave me. It automatically number the files in a folder.

But it ain’t working. And I ain’t aa programmer. So I come to you. The masters.

Thanks for your help.

Here’s the code:

b r i t t n e y s p a r s e - m u s i c. <? $d = dir("/home/.namath/crtdot"); $url = "http://www.crtdot.com/music/mp3"; $counter = 0; while ($file=$d->read()) { if (strstr($file, ".mp3")) { $counter++; $size = filesize($file); $first = $size / 1000000; $first_round = round($first); $second = $size % 1000000 / 100000; $second_round = round($second); echo "

$counter. $file $first_round.$second_round(MB)"; } } $d->close(); ?>

Thanks!