Solved

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

Posted on 2008-10-18
3
627 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

757 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

16 Experts available now in Live!

Get 1:1 Help Now