Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Online file editor, manager 6 59
simplest php form 3 59
updating table data with inner join 9 24
geting geocode of a user with using Google maps api 8 16
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
This article discusses how to create an extensible mechanism for linked drop downs.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

914 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

15 Experts available now in Live!

Get 1:1 Help Now