Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

i had this working but now i messed it up parse error

y2kbgy2kbg New
edited December 2006 in Vanilla 1.0 Help
Parse error: syntax error, unexpected T_STRING in /www/110mb.com/z/f/i/l/e/s/_/_/zfiles/htdocs/extensions/PageMng/default.php(802) : eval()'d code on line 7 in the code: <?php $vid="http://zfiles.110mb.com/files/whitenerdy.flv"; if (isset($_POST["vids"])) { $vid=($_POST["vids"]); } $scripp1="<p id=\"player1\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</p> <script type=\"text/javascript\"> var FO = { movie:\"files/flvplayer.swf\",width:\"600\",height:\"480\",majorversion:\"7\",build:\"0\",bgcolor:\"#FFFFFF\",flashvars:\"file="; $scripp2="&showdigits=true&autostart=true\"}; UFO.create(FO,\"player1\"); </script>"; echo $scripp1 . $vid . $scripp2; ?>

Comments

  • edited December 2006
    .
  • You know it'd be much easier to use single quotes to contain your variables and then you wouldnt have to escape all of the html double quotes...?
  • Try this:
    <?php 
    $vid='http://zfiles.110mb.com/files/whitenerdy.flv';
    if (isset($_POST['vids'])) $vid=($_POST['vids']);
    
    if(strrchr($vid, '?') === FALSE) $vid .= '?';
    else $vid .= '&';
    
    $scripp1 = <<< EOT
    <p id='player1'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</p>
    <script type='text/javascript'>
    var FO = { movie:'files/flvplayer.swf',width:'600',height:'480',majorversion:'7',build:'0',bgcolor:'#FFFFFF',flashvars:'file={$vid}showdigits=true&autostart=true'};
    UFO.create(FO,'player1');
    </script>
    EOT;
    
    echo $scripp1;
    
    ?>
  • thanks!
This discussion has been closed.