I have some code to put the vatsim id into a txt file and need some help. I have put the following code into the pilots_list.tpl where the vatsim id is place, and it works, but only puts one vatsim id into the text file.
$vroute = fopen("vroute.txt", "w") or die("Unable to open file!");
$txt = $fieldvalue."\n";
fwrite($vroute, $txt);
fclose($vroute);
I have created the vroute.txt file and it has write permission. I need some help in creating this file, as it will make it easier to get my pilots into my VA's vroute community.