Do zendframework have interfaces for importing data to the database and exporting the database?

Source: Internet
Author: User
Can zendframework import data to the database? is there an interface for exporting the database, such as importing data from excel and exporting data to excel. Thank you! ------ Solution -------------------- never met, help me !!!! ------ Solution ------------------ yes. you can change the name of a multi-file import. you need the latest framework package (about 1.90 or more). & nb: does zendframework have interfaces for importing data to the database and exporting the database?
For example, import from excel and export to excel. Thank you!

------ Solution --------------------
Never met. help me !!!!
------ Solution --------------------
Yes. you can change the name of a multi-file import. you need the latest framework package (about 1.90 or more)

$ Upload = new Zend_File_Transfer_Adapter_Http ();
$ Upload-> setDestination (getAppFilePath (C ('path. excel_upload ')));

$ Data = null;
$ UploadedFilename = '';

Try {
// Upload stored Ed file (s)
$ Upload-> receive ();
$ UploadedFilename = $ upload-> getFileName ('excelupload ');
} Catch (Zend_File_Transfer_Exception $ e ){
$ E-> getMessage ();
// TODO: set a notice and redirect url
}

If (file_exists ($ uploadedFilename )){
$ ErrorCode = error_reporting ();
Error_reporting (E_ALL &~ E_NOTICE );

// FileFacade-> processImport ($ uploadedFilename );
Require_once (getAppFilePath ('/application/util/excel_reader3.php '));
$ Data = new Spreadsheet_Excel_Reader ();
Error_reporting ($ errorCode );
// Set the encoding
$ Data-> setOutputEncoding ('utf-8 ');
$ Data-> read ($ uploadedFilename );
------ Solution --------------------
It seems that Wood has,
Google has an excel project, which is simple and easy to use.
There are also phpexcel projects, sourceforte, which are slow to save as a file, powerful functions, and a large amount of data (> 10 W) should be taken into consideration
Python has an excel module, which is quite good,
We recommend that you use excel to learn from it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.