xlsx to XML conversion php code for Codeigniter -
i looking php code converts xlsx(excel) xml file. looked everywhere couldn't anything. great if can guide me or share me her/her code?
thanks,
given tip mark baker gave can give guide how use phpexcel library
first of download phpexcel here. open zip file , extract entire content within classes folder third party folder
your third party folder shoud like
after create library named excel.php , place direct libraries folder - file shoud looke like
<?php if ( ! defined('basepath')) exit('no direct script access allowed'); require_once apppath."/third_party/phpexcel.php"; class excel extends phpexcel { public function __construct() { parent::__construct(); } }
now have load library like
$this->load->library("excel");
and phpexcel available intended purpose example can use reader object like
$objreader = phpexcel_iofactory::createreader($inputfiletype); $objphpexcel = $objreader->load($filename);
after have decide whether createwriter method suits needs or have build own export format.
Comments
Post a Comment