Solved

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

Posted on 2008-10-18
3
641 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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