<-- You don't need to read this 1st paragraph if you don't want -->
I host a ringtones website and at present users require a data cable to transfer files to their handsets. The download method on my site uses header functions in a download.php which proccesses all downloads and redirects to the files thus covering the URL of the actual file.
I want to allow users who do not have data cables to access my files via wap but I do not intend to run the site on wap too as yet.
All I want to do is to offer the direct download via wap instead by providing a URL such as http://mypolytone.tk/getfile.php?file=132 where 132 corresponds to the number of the file in the same way that I use download.php for Web downloads.
I know how to do this but my only problem is knowing what header functions to use for content-type when working with WAP/ (WML) and also whether you need to add anything special to the code to allow the phone to save the file.
Usually I would use
Code: Select all
header ('Content-Disposition: attachment; filename="somefile.mmf"');
header("Content-type: application/octet-stream");
header ("Content-Transfer-Encoding: binary");
readfile ('somedir/somefile.mmf');Thanks