Above is what the file color.etf has in it. Basically, what I'm doing is making a gallery system. All it does at the moment is uploads the image, and writes the information about it to a text file (including the location of the image.) The problem I'm having is with reading the information. It may look odd, but really it's just information I typed using a form, separated by [red][/red]'s, then every line separated by an [red][/red].
I used two explodes after reading the information from the file, one for the lines and one for the parts. Then, at the end, it echos a few things... but for some reason nothing shows up. Does anyone have an idea why?
Here's the code:
# Top of the page
# Fopen the file
$fopened = fopen("../visual/color.etf","r");
# Fread it
$fread = fread($fopened, filesize("../visual/color.etf"));
# Explode, twice... once for the lines and once for the parts
$exploded = explode($fread,"");
$counted = count($exploded);
$number = 0;
# t3h friggin' crazy while loop
while ($number < $counted)
$exploded[$number] = explode($exploded[$number],"");