Page 1 of 1

PHP Scripting Needed

PostPosted: Jan 23, 2005 @ 11:30am
by sponge
Anyone here up for a hopefully small PHP scripting task? (Miracle? :P)

Basically need a script that'll take a directory full of files with names in a certain format, and put them into a table with several columns, with a link to download the file being the last one.

Hell, if someone can get me started with something basic, I can probably expand it and otherwise hack it to my needs.

Basically it's:

MapName[Class.WW or NW]Time(Name).dm_83

PostPosted: Jan 23, 2005 @ 2:05pm
by damian
Do you know some basic PHP? The directory functions aren't really that hard if you look them up. I could probably write it in 20 or so mins, but I feel too lazy ATM.

PostPosted: Jan 23, 2005 @ 6:24pm
by refractor

PostPosted: Jan 23, 2005 @ 8:02pm
by sponge

PostPosted: Jan 23, 2005 @ 9:39pm
by sponge
Awesome, got it working:
http://d8d.org/etfspeed/captures.php

Used preg_match instead of preg_split, as I could then just do $matches[1] through 5.