| | |
Exporting GD image to excel
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 1
Reputation:
Solved Threads: 0
Put this code in top of your file. and display your image as you are displaying in HTML file. It will download as excel file as you want
$file_type = "vnd.ms-excel";
$file_name= "somename.xls";
header("Content-Type: application/$file_type");
header("Content-Disposition: attachment; filename=$file_name");
header("Pragma: no-cache");
header("Expires: 0");
$file_type = "vnd.ms-excel";
$file_name= "somename.xls";
header("Content-Type: application/$file_type");
header("Content-Disposition: attachment; filename=$file_name");
header("Pragma: no-cache");
header("Expires: 0");
![]() |
Similar Threads
- Image in DataGridView (C#)
- Exporting ASP pages to Excel (ASP)
- Get data out of excel file stored as an image (MS SQL)
- Export data to Excel Template (MS Access and FileMaker Pro)
- Exporting Reports to MS Excel (ASP.NET)
- Exporting data into Excel (C)
Other Threads in the PHP Forum
- Previous Thread: plz..i need a help..
- Next Thread: special upload mod required or modification to original uploader
| Thread Tools | Search this Thread |
ajax apache api array back basic beginner binary broken cakephp checkbox class cms code computing cron curl customizableitems database date delete display dynamic echo email error file files filter folder form forms forum function functions gc_maxlifetime google headmethod host href htaccess html image include insert integration ip java javascript joomla limit link login loop mail malfunction memmory memory menu mlm multiple mysql navigation oop parsing paypal pdf php problem query radio random recursion regex remote script search server sessions sms snippet soap source space sql syntax system table thesishelp trouble tutorial update upload url validator variable video web xml youtube





