Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
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 …

726 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