By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

Download an Excel File.

P: 68

I want to download an Excel file from the server and am using the following code.

Expand|Select|Wrap|Line Numbers
  1. <input type=button value="Click To Download" onClick="location.href='Logs.xls'">
On clicking this button, I get the following Error.

exec of /tmp_mnt/org/www/cgidir/dev_cgitools/Codeplug/Logs.xls failed (Exec format error)

I read about Exec Formet Error, and found that Excel seems to be an invalid format. I have no clue why the excel file is not working for this particular operation because, it works fine while uploading data in the same excel file.

Any help is appreciated.


Dec 11 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 4,059
This is the perl forum. What does your question have to do with perl?
Dec 11 '08 #2

Expert Mod 2.5K+
P: 3,503
I agree with Kevin. Unless you have a Perl question, this question is going to get moved.


Dec 11 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.