If your browser does not recognize the extention of a file, instead of opening it starts downloading it.
if you use a link like this http://domain.com/image.jpg then will open the image
but if you use
http://domain.com/program.exe page then start the download
The advantage of PHP is that although it is an image you can do to start a download
very interesting that ...
But how to make a swf download some files that I receive via XML, this is possible?
I make a PHP pages to read the XML get the link and download the files, as photos or mp4 files.
But I have to send a new file to 170 desktops, and do not want to put a webserver on each of them
So I thought on download this files with the swf file
If I understand you right you want all of these desktops (170?) to be able to download some files specified in an XML file.
To use the local filesystem (e.g. save a file) you will need to make an executable. A user loading a SWF in their browser will never have access to downloading and saving a file to the users computer. Flash is designed that way, so you're not worried a website is saving files on your computer (beyond innocent cookies).
You can use Adobe AIR which can save files or use a SWF projector extender like MDM Zinc or Screentime's mProjector. They can do as much and sometimes a lot more than AIR. I use all 3 and I download files in apps (AIR) and desktop (MDM Zinc). All 3 executables can be made for Windows, OSX and Linux.
Is an executable acceptable?