My Code -->
Because i dont quite understand the working of your code I am not sure if this is put together correctly. For obvious reasons it doesnt work but if i can get some help i would appreciate it. What it should do is open index.html and export the next 7 characters after text= in the document (all of which fall in a <A href> tag). It will then put them in an array and then save them to the exportFile.
<?
$importFile = "index.html";
$keyWord = "text=";
$exportFile = "ModID's
$fcontents = join ( '', file ( $importFile));
while (I DONT KNOW WHAT GOES HERE) {
list($waste, $text)=explode("text=",$fcontents);
$text_collection[]=$text;
echo $text; // prints "ERTRDYU"
}
print_r($text_collection);
// should print all your "texts" as an array
}
/ Now that the array is made write these to a file line by line /
$fp = fopen ($exportFile, 'w');
while ($text != ""){ //While there is something in the array.
fwrite($fp, text[$n]);
$n++
}
fclose($fp);
echo ("Variable list was exported to, $exportFile");
?>
Thanks a ton Craig, i have really appreciated your help.