jamesbond110 Posted June 16, 2008 Share Posted June 16, 2008 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php setcookie("band", "sugarcult", time()+3600);?><html xmlns="http://www.w3.org/1999/xhtml"> <head> the cookie is set but i still get the error i've changed all echos to print and all includes to require... still can't get it im using the cookie variable for: <?php print '<object type="application/x-shockwave-flash" data="player/player_mp3_mini.swf" width="200" height="20"> <param name="movie" value="player/player_mp3_mini.swf" /> <param name="bgcolor" value="000000" /> <param name="FlashVars" value="mp3=player/songs/' . $_COOKIE["band"] . '.mp3" /> </object>' ?> Quote Link to comment https://forums.phpfreaks.com/topic/110490-solved-header-output/ Share on other sites More sharing options...
trq Posted June 16, 2008 Share Posted June 16, 2008 What exactly is your problem? Quote Link to comment https://forums.phpfreaks.com/topic/110490-solved-header-output/#findComment-566847 Share on other sites More sharing options...
jamesbond110 Posted June 16, 2008 Author Share Posted June 16, 2008 Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home81a/sub003/sc45384-ACYD/www/music/music.php:3) in /mounted-storage/home81a/sub003/sc45384-ACYD/www/music/music.php on line 3 Quote Link to comment https://forums.phpfreaks.com/topic/110490-solved-header-output/#findComment-566891 Share on other sites More sharing options...
Mattyspatty Posted June 16, 2008 Share Posted June 16, 2008 do you have the code for music.php? Quote Link to comment https://forums.phpfreaks.com/topic/110490-solved-header-output/#findComment-566892 Share on other sites More sharing options...
jamesbond110 Posted June 16, 2008 Author Share Posted June 16, 2008 didnt need cookie variables for this anyway - but solved on my own Quote Link to comment https://forums.phpfreaks.com/topic/110490-solved-header-output/#findComment-566894 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.