Northern Flame Posted July 11, 2007 Share Posted July 11, 2007 im trying to make a ringtone website but im have trouble getting the ringtones to the phones LOL, im not to familiar with the way phones read the coding on websites, and when i tried to make a php script that forces the download when clicked on, it didnt work! it works on my computer, but my phone just gives me an error message. Im starting to think its because phones dont accept PHP or something but i dont know. the link tag looks like this: <a href="download.php?name=ringtone.mp3&path=/mp3/ringtone.mp3">Ringtone</a> I dont know, maybe i did something wrong with the tag, and the PHP script I used to force the download is: <?php //get variables $saveName = stripslashes($_GET["name"]); $savePath = stripslashes($_GET["path"]); //send headers to initiate a binary download header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$saveName"); header("Content-Transfer-Encoding: binary"); //set file length so browser can calculate download time header("Content-length: " . filesize($savePath)); //read file readfile($savePath); ?> Anyone know if phones accept PHP or if I just messed up the script? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 As far as I know they take neither unless you've got one of those fancy phones with a browser (basically a PDA) They use WML (WAP Markup Language) http://www.zvon.org/xxl/WMLTutorial/Examples/Example1/index.html Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted July 11, 2007 Author Share Posted July 11, 2007 oh then that explains why it wasnt working, well alright, thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.