Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Readdir arranged into a table.
05-03-2006, 10:35 PM #1
- Join Date
- May 2006
- Thanked 0 Times in 0 Posts
Readdir arranged into a table.
I've been programmin PHP for over two years now and I've only just realised I don't know how to do something! Iam currently retreiving all the conetnts of a folder using readdir. I want to be able to arrange all these files into a table three columns wide but I don't know how!
I want it to be like this:
Can anyone help?
05-04-2006, 06:39 AM #2
Not readdir, but it should be similar:
$files = glob('*');
for ($i = 0; $i < count($files); ++$i)
echo (($i + 1) % 3 && $i != count($files) - 1) ? '|' : '<br />';