Saturday, December 21, 2013

Generate Excel Data in PHP

[caption id="attachment_952" align="aligncenter" width="598"]Create Excel Create Excel[/caption]

[sourcecode language="php"]
<?php
header("Content-Type: application/xls");
header("Content-disposition: attachment; filename=data.xls");
echo 'Id' . "\t" . 'Item' . "\t" . 'Qty' . "\n";
echo '001' . "\t" . 'Compaq 610 laptop' . "\t" . '02' . "\n";
?>
[/sourcecode]

1 comment:

  1. usually posts approximately tremendously fascinating gear in the vein of this. If you?re new to this site

    ReplyDelete

How to enable CORS in Laravel 5

https://www.youtube.com/watch?v=PozYTvmgcVE 1. Add middleware php artisan make:middleware Cors return $next($request) ->header('Acces...