Can PHP read excel or CSV files?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Can PHP read excel or CSV files?

Post by deeessay »

Hi, can anyone tell me how to read an .xls file? I found a converter in some site but it generated so much error I just lost interest in using it... Thanks in advance!
manixrock
Forum Commoner
Posts: 45
Joined: Sun Jul 20, 2008 6:38 pm

Re: Can PHP read excel or CSV files?

Post by manixrock »

There are many PHP based XLS readers out there: http://google.com/search?q=php+xls+reader
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Re: Can PHP read excel or CSV files?

Post by deeessay »

Thanks for replying!

yeah I saw some of these but it seems most of them are either for sale or an online tool. I'm looking for a code which I can incorporate in mine. Know any freeware out there?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Can PHP read excel or CSV files?

Post by Zoxive »

deeessay wrote:Thanks for replying!

yeah I saw some of these but it seems most of them are either for sale or an online tool. I'm looking for a code which I can incorporate in mine. Know any freeware out there?
Have you searched? Recently one of our own was working on this. PHP CSV Utilities

http://code.google.com/p/php-csv-utils/ ... ePage?tm=6
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Re: Can PHP read excel or CSV files?

Post by deeessay »

This one I didn't find...

Thanks for your help I'll try this right away!
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Re: Can PHP read excel or CSV files?

Post by deeessay »

Hi again, I used the PHP CSV Utilities and I kinda got stuck on this error:

Notice: Array to string conversion in E:\???\???\???\???\???\Csv\Reader.php on line 118

File does not exist or is not readable: "Array".



How do I fix this?
Post Reply