Jump to content

Archived

This topic is now archived and is closed to further replies.

gupster

Fatal error: Cannot redeclare fputcsv()

Recommended Posts


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,

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
cheers but what do i do to get around it.


Thanks,

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.