Menu

#215 Error then try to play

open
nobody
5
2006-02-17
2006-02-17
Anonymous
No

Some days ago i have a error :

Warning: Header may not contain more than a single
header, new line detected. in
K:\trinityweb\music2006\play.php on line 164
#EXTM3U #EXTINF:264,Dude (Looks Like A Lady) -
Aerosmith (Big Ones)

How can i solve it.

My PHP Version 4.4.2 & Windows IIS server

Thanx

Discussion

  • Peter Brooks

    Peter Brooks - 2007-03-09

    Logged In: YES
    user_id=838833
    Originator: NO

    Hello there, I've only just discovered this awesome player so I appoligse if you're getting this a tad late.
    edit play.php from:
    header ("Content-type: audio/x-mpegurl\r\nContent-Disposition: inline; filename=netjuke-".substr(time(),-7).".m3u" );

    to:
    header ("Content-type: audio/x-mpegurl");
    header("Content-Disposition: inline; filename=netjuke-".substr(time(),-7).".m3u" );

    Then it will work, this is due to the php folks changing allowable characters in headers.

    Again, I'll submit a patch soon.

     
  • Nobody/Anonymous

    Logged In: NO

    Warning: Header may not contain more than a single header, new line detected. in /home/clanwe/public_html/netjuke/play.php on line 164

    have same problem

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks theneb, it didn't error, it opened windows media player, but it says :

    Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file

    Am i doing something wrong?

     
  • Peter Brooks

    Peter Brooks - 2007-03-16

    Logged In: YES
    user_id=838833
    Originator: NO

    Hi there,
    If you could open the file that it's downloaded in a text file and paste the contents in here.
    It *should* be downloading a m3u file, of which wmp supports and within that file should be the locations of files on your server that wmp can access.

     
  • Nobody/Anonymous

    Logged In: NO

    it hasnt really fixed the problem. its just that now it wudnt prompt us to save the m3u file. wut is does is when we click on play button it just goes directly to windows media player and try to pay it. but it doesnt work and it gives out an error.

    Windows Media Player cannot play the file. The Player might not support
    the file type or might not support the codec that was used to compress the
    file

    but then in firefox when i click on the play button it prompts to open on save the file. if i click on open the file it works fine..but then if i try to save it it will save a play.php file with m3u file text in it. so its not actaully saving it in m3u format.

    some help on this would be appericiated. thanks

     

Log in to post a comment.

MongoDB Logo MongoDB