Oops the function had one mistake in it (from me already trouble
shooting this), it should be:
function updateSuspenderOrVehicleFile($fileToUpdate, $newDataArray)
{
$fileName = fopen( $fileToUpdate,"w");
for ($i=0; $i<count($newDataArray); $i++)
{
//don't write blanks left by remove feature
if ($newDataArray[$i] != "")
{
//check to see if on the last solution, if not add line break at end.
if ($i+1 ==
count($newDataArray))
//the older email had an OR statement here
fwrite($fileName,"$newDataArray[$i]");
else
fwrite($fileName,"$newDataArray[$i]\r\n");
}
}
}
Thanks,
Andrew V. Romero
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]