Jump to content


Photo

Need help for my downloadable link please..


  • Please log in to reply
2 replies to this topic

#1 Iyad

Iyad
  • Members
  • PipPip
  • Member
  • 17 posts
  • LocationBalikpapan

Posted 05 September 2006 - 07:32 AM

I want to make a link that contain file (*.xls file) that when somebody click on it show "open or save or close form".

I put my files in "../reports/" folder and make id or key for each files.

Plese help, this problem really took my time.

Thanks,
Iyad



#2 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 05 September 2006 - 07:49 AM

you can either use this PHP line on you're download page
header("Content-disposition: attachment; filename=yourfile.xls");

or you can go to your Apache http.conf file
and add this line to the bottom of it.........and restart the server

AddType application/x-excel xls

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png

#3 Iyad

Iyad
  • Members
  • PipPip
  • Member
  • 17 posts
  • LocationBalikpapan

Posted 05 September 2006 - 09:40 AM

ok..thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users