PHP QUESTION

ashutosh singh

Total Post:7

Points:49
Posted by  ashutosh singh
Phpdoc 
PHP
 584  View(s)
Ratings:
Rate this:
1.please tell me about mvc for php and lareval framework?
2. how to convert an html file to excel file using php script?
 
  1. John Smith

    Post:103

    Points:727
    Re: php question

    To Convert HTML file to Excel File:

    $inputFileType = 'HTML';
    $inputFileName = './HtmlFile.html';
    $outputFileName = './ExcelFile.xlsx';
    $outputFileType = 'Excel2007';


    $objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType);
    $objPHPExcel = $objPHPExcelReader->load($inputFileName);

    $objPHPExcelWriter = PHPExcel_IOFactory::createWriter($objPHPExcel,$outputFileType);
    $objPHPExcel = $objPHPExcelWriter->save($outputFileName);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!