Solved

PHP MySQL  - using PHP to instruct Calc OpenOffice to Convert XLS to CSV

Posted on 2008-10-18
3
634 Views
Last Modified: 2013-12-13
I need a program or script that resides on a Linux server that can open an excel csv file, convert it to csv and save the csv file.

I understand the OpenOffice can be used via PHP.

Does anyone know how to use PHP to have Calc in OpenOffice, open an excel file, and save as csv using command line only (i.e. this will run on a server and needs to happen whenever the PHP script is called).
0
Comment
Question by:fastfind1
  • 2
3 Comments
 
LVL 5

Expert Comment

by:crush83
ID: 22750053
What's the difference between an excel csv and a normal csv?
0
 

Author Comment

by:fastfind1
ID: 22750063
Sorry for the confusion.

I need to convert from an excel file (.xls) to a csv file without using excel.  I need to do this on a Linux server running apache, as part of a web app that is written in PHP
0
 
LVL 5

Accepted Solution

by:
crush83 earned 500 total points
ID: 22750101
popen() would be an option perhaps.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now