Simple (?) PHP issue

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

Where a file downloads is determined by the users settings. Nothing you can do to change it, that I am aware of, nor should you. If they want it moved, they can.

Sponsor our Newsletter | Privacy Policy | Terms of Service