Click here to Skip to main content
16,017,307 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to convert excel to .php files
Posted
Comments
Joan M 24-May-11 3:24am    
well... excel has a propietary format and allows you to make tons of things... PHP is a "programming language" that allows you to do several other things... your question therefore has not a lot of sense... I guess you are asking how to represent excel data in PHP pages... but you definitely should explain a little bit more your question...
wisrael 2-Jun-11 6:54am    
thanks for your concern firstly.the question is : gain data from excel file,then convert to some mode .php file; like this: if excel "country" field is "Taiwan",so .php file to be --set("entry:84/country", "Taiwan");
Joan M 2-Jun-11 7:04am    
Read my new answer...
wisrael 2-Jun-11 7:36am    
expecting...
Joan M 2-Jun-11 7:42am    
Already answered... See solution 2. ;)

I don't think you meant what you asked: did you mean "how do I read excel files in php"?

If so, then Google can help, or look here: Reading and Writing Spreadsheets with PHP[^]
 
Share this answer
 
This answer comes as an answer of your comment.

Take a look at these links:

Accessing Excel Spreadsheets via C++[^]

Reading Excel files using ODBC[^]

How to Read and Write Excel Files in C++ via ADO[^]

There are lots of ways to interact with excel, if you have to do it in C++ then the way to go is to read the values in the excel file, open a text file in order to write data into it and translate the excel file as you need to store the values into the text file... you know your requirements so you will have to finish your design to implement your needs, but basically you have to reach access to the excel file, open a text file and store data inside to follow the php requirements.

Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900