njagi
29
Newbie Poster
Recommended Answers
Jump to Post<?php $file="test.xls"; $test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$file"); echo $test; ?>
This works.
Jump to PostYou need to show us your entire script. :)
Jump to Postmy code works just fine :)
Jump to PostI have no idea what's on line number 2 of your script. (And, I am not a mind reader.)
All 16 Replies
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
njagi
29
Newbie Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
njagi
29
Newbie Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
njagi
29
Newbie Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
njagi
29
Newbie Poster
sunfish
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
sunfish
0
Newbie Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
mree5
0
Newbie Poster
ddellostritto
0
Newbie Poster
sandyair
0
Newbie Poster
swss
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.