Page 1 of 1

Problem converting some php??

Posted: Sun Feb 26, 2006 3:44 am
by evildeshi
feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


 
Ok im attempting to convert this so that it is useable in any content manager to be used as just plain php. but i cannot figure out what is going wrong. here is the original code if someone can help me figure out how to make it work just loading the php that would be awesome.

Code: Select all

<?php

if (eregi("block-YB_Radio.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<object ";
$content  .= "                   classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" name=\"wmtPlayer\" width=\"150\" hei$
$content  .= "  <param name=\"url\" value=\"http://24.177.66.230:8000\">";
$content  .= "    <param name=\"autostart\" value=\"0\">";
$content  .= "    <param name=\"uiMode\" value=\"mini\">";
$content  .= "    <embed";
$content  .= "                      src=\"http://wickedradio.org:8000\"";
$content  .= "                      width=200 height=100";
$content  .= "                      autostart=\"1\" align=\"middle\" type=\"application/x-mplayer2\" ";
$content  .= "                       name=\"wmtPlayer\"";
$content  .= "                      uimode=\"mini\"> </embed> </object> ";


?>

feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Sun Feb 26, 2006 7:01 am
by Planplan
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" name="wmtPlayer" width="150" hei$

What is this "hei$"? The <object> is missing ">", so, it can't work.

Posted: Sun Feb 26, 2006 9:48 am
by feyd
it's missing a closing double quote on that line above all.