Problem converting some php??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
evildeshi
Forum Newbie
Posts: 1
Joined: Sun Feb 26, 2006 3:41 am

Problem converting some php??

Post 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]
Planplan
Forum Newbie
Posts: 3
Joined: Sat Feb 25, 2006 1:57 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's missing a closing double quote on that line above all.
Post Reply