gupster Posted June 19, 2006 Share Posted June 19, 2006 Fatal error: Cannot redeclare fputcsv() ind:\ blah blah blah.Ive just tried to install a bit of php software and im getting this error the php version is 5.Cheers, Link to comment https://forums.phpfreaks.com/topic/12405-fatal-error-cannot-redeclare-fputcsv/ Share on other sites More sharing options...
kenrbnsn Posted June 19, 2006 Share Posted June 19, 2006 The script was probably written for a version of PHP before 5.1 when the fputcsv() function was introduced and the script's author didn't put a check in the code to see if the function exsisted before defining it.Ken Link to comment https://forums.phpfreaks.com/topic/12405-fatal-error-cannot-redeclare-fputcsv/#findComment-47427 Share on other sites More sharing options...
gupster Posted June 19, 2006 Author Share Posted June 19, 2006 cheers but what do i do to get around it.Thanks,p.s i know very very little about php just the basics Link to comment https://forums.phpfreaks.com/topic/12405-fatal-error-cannot-redeclare-fputcsv/#findComment-47432 Share on other sites More sharing options...
wildteen88 Posted June 19, 2006 Share Posted June 19, 2006 Well what you'll need to do is change where it delcares the function:[code]function fputcsv(...)[/code]to something else, like f_put_csv. But your next problem will be going through your script and change any instance of fputcsv to your newly name function, f_put_csv Link to comment https://forums.phpfreaks.com/topic/12405-fatal-error-cannot-redeclare-fputcsv/#findComment-47434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.