daniel@xxxxxxxxxxxxxxxx wrote: > Hi there, I have been building a player script which outputs a windows > media asx playlist with theheader output type of video-ms-wmv. I have > experienced some wierd issues > when i use ifstatements at certain points with the header tag enclosed > within it, i get > unexpected results on themac plugin. "Playlist format is unrecognised" Ie > > if ($_SESSION['referer_checked']) { > > header(aplicationtype ...); > echo $asx_playtlist here > } > > Is there somehow that an if statement is adding stuff to the header when > it shouldnt be ? Therecould also be the possibility the plugin doesnt > start a session or > something, even though itsloading a php script as its filename ? The session doesn't get started unless you call session_start (or session_register, or, these days, maybe just putting something in $_SESSSION will start it...) Most likely, your $_SESSION isn't set up. You could try to diagnose when it is or isn't set up. The if () statement itself is not the issue -- The way you have programmed things is the issue. Welll, it could just be Windows being Windows, or network connectivity is mkaing the playlist never show up or... But none of those are real likely, based on what you've said so far. Show us more of your script. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php