Nordan,
A couple of things, how is the text file formatted let's take to possibilites one it looks like
image1.gif image2.gif image3.gif image4.gif
To get this into an array one would do
PHP Code:
$file = file("yourfile");
foreach($file as $val) {
$tmp = explode(" ", $val);
for($i=0;$i<count($tmp);$i++) {
$imagelist[] = $tmp[$i];
}
}
if they are like this
image1.gif,image2.gif,image3.gif,image4.gif
Then
PHP Code:
$file = file("yourfile");
foreach($file as $val) {
$tmp = explode(",", $val);
for($i=0;$i<count($tmp);$i++) {
$imagelist[] = $tmp[$i];
}
}
Bookmarks