you mixed up delimiter and enclosure arguments here
and redefined only the delimiter from ',' to '~'
you also have to redefine the enclosure character
to something you don't use in your data instead of
'"' to make your code work (4th parameter to fgetcsv())

[2002-06-18 17:49 UTC] Grant dot Walters at walters dot co dot nz

So as my data that does not contain an "enclosure character", how should this be handled? The current manual page states that the parameter cannot be null.