I have written a win32 program that uses a custom-made file-type in this format: xtp://78.2.45.43/somefile.zip
When a user copies that into their browser, my program automatically launches itself and downloads the file.
I also have a PHP/SQL database with a bunch of these files that my users can browse and download. I do not want the link itself to be visible to the user so it goes through a download.php&id=$someid.
All of this is ok, my only problem is i cannot get the link to execute my program for downloading. I have tried the following :
Code: Select all
header('Location: xtp://78.2.45.43/somefile.zip');Does anyone know why and if possible, a way to get this working the way it should?
Thanks
-- tarja