|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Different way of providing a download
I am hoping someone could lend some expert advice cos I am totally stuck.
I am trying to create a WAP site allowing you to download tones but my tones are stored in a database as a filestring I believe so I can't provide a simple URL to deliver the download. Is it possible to deliver the download in any other way. I think that at the moment downloads are sent to the user via headers when you access the download via the broswer. Code:
header('Content-Type: ' . $filetype);
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Content-Disposition: attachment; filename="' . $filename . '"');
header('Content-Length: ' . strlen($filestring));
echo $filestring;
Can WAP devices accept headers in this way to accept file downloads too? |
|
#2
|
||||
|
||||
|
Quote:
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
OK that is good to know.
I was also wondering what headers are needed by my WAP device because I only want to send what is essential. I guess this is one Code:
header("Content-type: text/vnd.wap.wml");
What else does the phone need? Or can I simply use Code:
echo $filestring; |
|
#4
|
||||
|
||||
|
Quote:
No you don't want to have wap.wml headers on a file download! You'll need to set the headers for audio/mid or audio/midi and so on for the files the user is downloading otherwise the server will output the data of a midi file and tell the phone it's a wap page which would be pretty numb. I must introduce a policy of not trying to help people who want to give away ringtones as if you all suceeded i'd make no money, wouldn't be able to eat and would have to get a proper job and that is the last thing I want! ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Different way of providing a download |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|