I was wondering how I should best handle magic quotes and csv file creation. I should I be checking to see magic_quotes_gpc is turned on then stripping slashes, or is this something I need not worry about.
I do not believe it should affect fputcsv. magic_quotes_gpc only affects incoming GET, POST, and COOKIE data.
Correct, and the data I'm writing to csv file is retrieved via $_POST.
Then yes, you need to account for the escaping done to that data if magic_quotes is turned on (via [man]stripslashes[/man]). Of course, the better option would be to ensure that it is turned off, either via the the global server configuration or else locally via a .htaccess file (assuming Apache), especially since it will go away completely in PHP6.
I'll do that, btw I did notice that it would be removed from PHP6.
Off topic but did you also notice goto is being added to PHP6.