Note that there are some explanatory texts on larger screens.

plurals
  1. POWarning: Cannot modify header information - headers already sent by
    primarykey
    data
    text
    <p>When I run player.php it's giving this error:</p> <pre><code>Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/m/u/s/i/c/k/i/n/musicking/htdocs/player.php:8) in /www/110mb.com/m/u/s/i/c/k/i/n/musicking/htdocs/player.php on line 24 </code></pre> <p>Can you please help?</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Player&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;?php if(isset($_POST["song"])&amp;&amp; $_POST['song'] != "") { $song = $_POST["song"]; } else {$song=array();} for ($i="0"; $i&lt;count($song); $i++) { } //start of new php codep // create doctype //$array = array( // 'song.mp3','song.mp3','song.mp3', //); $dom = new DOMDocument("1.0"); // display document in browser as plain text // for readability purposes header("Content-Type: text/plain"); // create root element $root = $dom-&gt;createElement("xml"); $dom-&gt;appendChild($root); $i = "1"; foreach ($song as $counter) { // create child element $song = $dom-&gt;createElement("track"); $root-&gt;appendChild($song); $song1 = $dom-&gt;createElement("path"); $song-&gt;appendChild($song1); // create text node $text = $dom-&gt;createTextNode($counter); $song1-&gt;appendChild($text); $song1 = $dom-&gt;createElement("title"); $song-&gt;appendChild($song1); $text = $dom-&gt;createTextNode("song ".$i); $song1-&gt;appendChild($text); $i++; } // save and display tree $dom-&gt;save("playlist.xml"); ?&gt; &lt;script type="text/javascript" src="swfobject.js"&gt; &lt;/script&gt; &lt;div id="flashPlayer"&gt; This text will be replaced by the flash music player. &lt;/div&gt; &lt;script type="text/javascript"&gt; var so = new SWFObject("playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF"); so.addVariable("autoPlay","yes") so.addVariable("playlistPath","playlist.xml") so.write("flashPlayer"); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload