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.