Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1

    Default [Help] asx files opening as a file

    Well on our radio, to play the radio in windows media player the file opens like a txt file instead of asking to save etc..
    Does anyone know how to fix this?

  2. #2
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Well, unsure how to fix it so you can directly link it, but in the meantime, you can just use PHP to force the file to download:

    PHP Code:

    $file 
    'filename.asx';

    header("Content-type: video/x-ms-asf");
        
    header("Content-Disposition: attachment; filename=$file");
            
    readfile("$file"); 
    Change $file to suit the filename of the ASX file you're downloading. Upload to webhost, and when you want the ASX file to download, link that file instead. The result will be exactly the same.

  3. #3

    Default

    Quote Originally Posted by benzoenator View Post
    Well, unsure how to fix it so you can directly link it, but in the meantime, you can just use PHP to force the file to download:

    PHP Code:

    $file 
    'filename.asx';

    header("Content-type: video/x-ms-asf");
        
    header("Content-Disposition: attachment; filename=$file");
            
    readfile("$file"); 
    Change $file to suit the filename of the ASX file you're downloading. Upload to webhost, and when you want the ASX file to download, link that file instead. The result will be exactly the same.
    Thanks you =]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •