Jump to content


Photo

Fatal error: Cannot redeclare fputcsv()


  • Please log in to reply
3 replies to this topic

#1 gupster

gupster
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 June 2006 - 07:13 PM


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,

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 19 June 2006 - 07:21 PM

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

#3 gupster

gupster
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 19 June 2006 - 07:25 PM

cheers but what do i do to get around it.


Thanks,

p.s i know very very little about php just the basics

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 19 June 2006 - 07:30 PM

Well what you'll need to do is change where it delcares the function:
function fputcsv(...)
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users