Hello all. I’m Robert, and I’m very new to PHP. I have a script on my webpage that downloads a file from my server to the user’s machine. The code I’m using is:
[php]<?php
header(“Content-disposition: attachment; filename=axbeanquikbots.xlam”);
header(“Content-type: application/vnd.ms-excel”);
readfile(“axbeanquikbots.xlam”);
?>
[/php]
This works great, but it downloads by default to the “Downloads” folder. I would like to direct it to download to the user’s desktop. Is that possible? I thought of running a batch file to copy the file to Desktop, but that would require a seperate download of the batch file, since you can’t run a .bat from the web. I’ve searched all over, please help!
Robert