• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

generate an Excel file using PHP

phpexcelweb-applications


PHP Snippet 1:

//define separator (defines columns in excel & tabs in word) 
$sep = "\t"; //tabbed character 
$fp = fopen('database.xls', "w"); 
$schema_insert = ""; 
$schema_insert_rows = ""; 
//start of printing column names as names of MySQL fields

Related Snippets

How in Laravel run JavaScript code stored in php variable?

Pages are working fine on localhost but not running on the hosting server

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

How to install LDAP in Docker php-fpm alpine

PHP DOTENV unable to load env vars

How to use React Router with Laravel?

How to create a cookie to store the timestamp of when a page is first loaded with php

How to insert Google Adsense Code in PHP script?

renameColumn migration fails for existing column with columns does not exist error

Laravel Command Schedule Not Working Properly

Center point of multiple gps coordinates with php

Add bold text and line break into Laravel Notification Email

httpd.conf on Windows: can't locate API model structure `php8_module`

mysql_result is defined but mysql_free_result warns it expected a resource

About Contact Privacy policy Terms and conditions