Open Source Resources for Web Application Developers

Shopify - Online Store Builder
Follow Us on Social Sites
Subscribe RSS Subscribe Newsletter Like us on Facebook Follow us on Twitter Follow us on Google+
  • Home
  • News
  • Plugins
  • Design
  • Others
  • Books
  • About
29 Apr

PHP Excel Reader – Parse & Retrieve Content from XLS Files

  • MIT License, Tools
  • Leave a Comment

PHP Excel Reader allows you to parse and retrieve information from XLS files. It reads the binary format of XLS files directly and can return values and formats from any cell.

The simplest way to interact with an XLS file is to just dump it to HTML for display in a browser. This method will generate a table with inline CSS and all available formatting. By simply using this php command: <?php dump(true,true); ?> The output looks like this (with some CSS):

php-excel-reader

Requirements: PHP Framework
Demo: http://code.google.com/p/php-excel-reader/
License: MIT License

Share
Tweet
Sponsors
subscribe to our newsletter - weekly free resouces for web developers
follow us on social sites - rss, facebook, google+, Twitter
Subscribe RSS Like us on Facebook Follow us on Twitter Follow us on Google+
Related Resources
Excel Style Keyboard Navigation for HTML Tables

Excel Style Keyboard Navigation for HTML Tables

Create Charts & Graphs from Tables using HTML 5 Canvas

Create Charts & Graphs from Tables using HTML 5 Canvas

Feedly: The Best Alternative of Google Reader

Feedly: The Best Alternative of Google Reader

Drag and Drop Table Content with Javascript

Drag and Drop Table Content with Javascript

Create a MS Excel Style Spreadsheet with jQuery.sheet

Create a MS Excel Style Spreadsheet with jQuery.sheet

Style Your Markup in Your Browser with Brosho jQuery Plugin

Style Your Markup in Your Browser with Brosho jQuery Plugin

Comments
  • http://www.easywebshop.no/ Kim Steinhaug

    This is a great library for PHP, and should solve most peoples problems when handling Excel files. Anyone know of any good (not XML) Excel writers for PHP4/5?

  • http://www.mirandarp.org Razunter

    http://code.google.com/p/php-excel-reader2/

  • http://www.easywebshop.no/ Kim Steinhaug

    As excel writer I am currently using this one:
    http://pear.php.net/package/Spreadsheet_Excel_Writer

    What are you using?

  • Andreas Herz

    Hi,

    I’m using http:///www.dbTube.org to import an Excel Sheet

    Greetings

    Andreas

  • http://daipratt.co.uk David Pratt

    You can create a MS Excel file in the following way with the MS-Excel Stream handler:

    $fp = fopen(”xlsfile://temp/excel.xls”, “wb”);
    if (!is_resource($fp)) {
    die(”Cannot open file”);
    }

    $data= array(
    array(”Team” => “Chelsea”, “Points” => 80,
    array(”Team” => “Arsenal”, “Points” => 85,
    array(”Team” => “Spurs”, “Points” => 75
    );
    fwrite($fp, serialize($data));
    fclose($fp);

    //Simples

  • http://www.phpexcel.net Mark Baker

    Or take a look at PHPExcel ( http://www.phpexcel.net ) which has the benefit of being able to read and write workbooks in a variety of different formats, including both xls and xlsx, and is still actively supported

  • http://www.warungsulap.com amik

    wow.. thanx guys…

    i’m quite new to PHP and i never knew it could export/import from XLS file. surely will take a close look at this one…

  • Gary

    This is a great library, no doubt. I only have one problem and is that when i have a large excel doc (about 50.000 lines) the process dies. Any help for that?

  • Harrald

    Hi,

    50′000 rows in Excel? I think you mean the max 47′000
    lines limitation of Excel…anymway.

    I solve my problem with dbTube by increase the max PHP
    memory and increase the script max excution time in my php.ini.

    Greetings

    Harrald.

  • http://www.steinhaug.no/ kim@steinhaug.com

    @Andreas Herz
    I see dbtube.org being mentioned many places in the comments, and I have looked at their site a few times without being convinced this is a sollution of my needs.

    Can someone point me to an article or review of this “system”, do I install it in my own system or is it just a service? I need to parse excel files to import data in different systems, having a service for doing this is no good to me. Maby I didnt read the dbtube.org site correctly, but seems to my this is a service and not a system?

  • Andreas Herz

    Hi,

    dbTube.org is a PHP software which can be installed on any
    PHP server. It is not a service – dbTube is not Google ;-)

    In this case you can use it for your private intranet or on
    your local, standalone machine.

    Requirements: Excel xls, PHP >=5 and mySQL

    Greetings

    Andreas

Open Source Resources for You

What we need is a list of the top quality resources, so that we can spend more time on our web development. WebAppers only picks the top quality web development resources for you.

© Copyright 2012 WebAppers | About | Archives | Privacy Policy | Advertise | Contact

Sponsors
Advertise Here
Search
By Keywords
30 Days / All Time
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Professional Business Cards Made By Designers
  • Best Free Chrome Extensions for Web Developers
  • All of the Best Free WordPress Themes You Need
  • How to Create a Web App Admin User Interface
  • Nice List of Open Source Fish Eye Menu
  • Best Web Admin Templates
  • 25 Useful Blogs for Web Design & Development
  • Simple Javascript Progress Bar with CSS
  • 10 Useful & Quality Design Resources
  • Free Web Application Icons
  • How to Create High-Performance Code
  • Easy to Use, Drag & Drop Bootstrap Interface Builder
  • The Most Well-Made, Free & Open Source Fonts
  • Tiny Responsive jQuery Slider without Fancy Effects
  • How to Create Realtime Multi-player Games in HTML5
  • Create an Amazon-like Navigation Menu with jQuery
  • A True Responsive jQuery Lightbox Plugin for Free
  • How to Make FullScreen Page Transitions with CSS
  • How to Use Web Workers for Image Manipulation
  • Pretty Neat jQuery Mobile Theme Based on Flat UI
Sponsors
Plugins
  • Advertisement15
  • Calendar47
  • Capture19
  • Charts55
  • Chat22
  • Demo Tour16
  • Gallery121
  • Maps30
  • Menu86
  • Polls9
  • Popup49
  • Tooltips42
  • Upload33
  • Video18
Desgin
  • Brushes11
  • Buttons25
  • Color Schemes24
  • Fonts47
  • Forms112
  • Icons108
  • Patterns24
  • PS Tutorials15
  • Stock Photos21
  • Tables25
Others
  • Announcement103
  • Best Collections6
  • Code54
  • eCommerce24
  • Framework214
  • Hosting13
  • Information238
  • Inspiration32
  • Legal Documents10
  • Reviews8
  • Security13
  • Social28
  • Sound16
  • Stats39
  • Tools293
  • Webmail14
Licesnes
  • BSD License67
  • CC License122
  • GPL License224
  • LGPL License40
  • License Free738
  • MIT License408
Sponsors
Advertise Here
Partners
NetDNA