Use PHP to turn Excel to HTML
To implement a feature that turns various documents (PDF,EXCEL, etc.) into HTML, you can understand the need for online document previews.
There's no problem with PDF to HTML at the moment, but Microsoft's docs like Excel haven't been able to do it yet, and want to find some open source software that can be used. (All of them have a little difficulty in parsing)
The younger brother beginner PHP, also hope has the experience friend many advice, extremely appreciates.
------Solution--------------------
PHP can read the CSV format in Excel, after obtaining the data, you can make the HTML layout according to your requirements:
PHP Code
$row = 1; $handle = fopen ("Test.csv", "R"), while ($data = Fgetcsv ($handle, +, ",")) { $num = count ($data); echo "
\ n "; $row + +; for ($c =0; $c < $num; $c + +) { echo $data [$c]. "
\ n "; }} Fclose ($handle);
------Solution--------------------
http://www.iteye.com/topic/333676
------Solution--------------------
How did you fix it, send it out and share it?
------Solution--------------------
Phpexcel to parse the data out. The method of converting to HTML requires its own operation.