[RESOLVED] Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';
Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: [RESOLVED] Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    [RESOLVED] Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';

    PHP Code:
    <?php
    require_once "maincore.php";
    require_once 
    "subheader.php";
    require_once 
    "side_left.php";

    $username $userdata['user_name'];

    $sql2="SELECT * FROM registered_files WHERE id = '$id'";
    $result2=mysql_query($sql2);
    $rows2=mysql_fetch_array($result2);

    $imagename $rows2['imagename'];
    $imagedescription $rows2['description'];

    opentable('Edit Images');
    $owner $userdata['user_name'];
    $sql "SELECT * FROM `registered_files` WHERE `owner` = '$owner'" ;
    $result=mysql_query($sql);
    // Define $color=1
    $color="1";
    echo 
    '<table width="850" border="1" align="center" cellpadding="2" cellspacing="0">';
    while(
    $rows=mysql_fetch_array($result)){
    $id $rows['id'];
    // If $color==1 table row color = #FFC600
    if($color==1){
    echo 
    '<tr bgcolor="#eeeeee" onmouseover ="style.backgroundColor=\'#3D59AB\';" onmouseout=\'style.backgroundColor="#eeeeee"\'>
    <td>'
    .$rows['status'].'</td><td>'.$rows['imagename'].'</td><td>'.$rows['date'].'</td><td>'.$rows['description'].'</td>
    <td><a href="/memberseditimages.php?editid='
    .$id.'">Edit</a></td>
    </tr>'
    ;
    // Set $color==2, for switching to other color
    $color="2";
    }
    // When $color not equal 1, use this table row color
    else {
    echo 
    '<tr bgcolor="#c0c0c0" onmouseover ="style.backgroundColor=\'#3D59AB\';" onmouseout=\'style.backgroundColor="#c0c0c0"\'>
    <td>'
    .$rows['status'].'</td><td>'.$rows['imagename'].'</td><td>'.$rows['date'].'</td><td>'.$rows['description'].'</td>
    <td><a href="/memberseditimages.php?editid='
    .$id.'">Edit</a></td>
    </tr>'
    ;
    // Set $color back to 1
    $color="1";
    }}
    echo 
    '</table>';
    $editid $_GET['editid'];
    $sql2="SELECT * FROM registered_files WHERE id = '$editid'";
    $result2=mysql_query($sql2);
    $rows2=mysql_fetch_array($result2);
    $imagename $rows2['imagename'];
    $imagedescription $rows2['description'];
    if(isset(
    $_GET['editid']) && $rows2['owner'] = $username) {
    echo 
    '<br /><br /> <center><body><table width="700" border="1" cellpadding="2" cellspacing="0">
      <tr>
        <td width="156">Status:</td>
        <td width="530"><form id="form1" name="form1" method="post" action="editimagesprocess.php?save=1">
        <font color= "green" >Public</font>
            <input name="status" type="radio" value="public" />
            </label>
        or
        <label>
        <font color="red"> Private </font>
         <input name="status" type="radio" value="private" />
         <input name="id" type="hidden" value='
    .$editid'>
        </label>
        <label>
        <label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="Save1" type="submit" id="Save1" value="Save" />
        </label>
        </form>
        </td>
      </tr>
      <tr>
        <td>Image Name: </td>
        <td><form id="form2" name="form2" method="post" action="editimagesprocess.php?save=2">
          <label>
            <input name="imagename" type="text" id="imagename" value='
    .$imagename.' size="40" maxlength="50">
                 <input name="id" type="hidden" value='
    .$editid.'>
            </label>
          <label>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="Save2" type="submit" id="Save2" value="Save">
          </label>
        </form>
        </td>
      </tr>
      <tr>
        <td height="77">Image Description: </td>
        <td><form name="imagedescription" method="post" action="editimagesprocess.php?save=3">
          <label>
            <textarea name="imagedescription" cols="50" rows="3" id="imagedescription">'
    .$imagedescription.'</textarea>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
          <label>
          <input name="imagedescription" type="submit" id="Save3" value="Save">
          </label>
               <input name="id" type="hidden" value='
    .$editid'>
        </form>
        </td>
      </tr>
    </table></center>'
    ;


    }
    require_once 
    "side_right.php";
    require_once 
    "footer.php";

    ?>
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/lpxxfain/public_html/memberseditimages.php on line 75

    I really don't know where it went wrong. It was working fine, before I added the "hidden field." Please help,

    Regards,
    AIMMutlmedia.com
    Share on Google+

  2. #2
    NMaOtBG bpat1434's Avatar
    Join Date
    Oct 2004
    Location
    Around 255.255.255.0
    Posts
    7,849
    PHP Code:
     '    <label>
        <font color="red"> Private </font>
         <input name="status" type="radio" value="private" />
         <input name="id" type="hidden" value='
    .$editid'> 
    Right there
    Last edited by bpat1434; 03-29-2006 at 06:56 PM.
    Share on Google+

  3. #3
    Junior Member
    Join Date
    Mar 2006
    Posts
    20
    What's wrong with it?
    Share on Google+

  4. #4
    NMaOtBG bpat1434's Avatar
    Join Date
    Oct 2004
    Location
    Around 255.255.255.0
    Posts
    7,849
    missing a "." between $editid and '>.....
    Share on Google+

  5. #5
    Junior Member
    Join Date
    Mar 2006
    Posts
    20
    Ah! Thank you, didn't think it really mattered. Oh well, we make mistakes, we learn.
    Share on Google+

  6. #6
    Junior Member
    Join Date
    Mar 2008
    Posts
    1
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fauna/domains/faunaurbana.org/public_html/administrator/index.php on line 240

    Can you help me? Thanks, I don't see the error :S

    PHP Code:
    <?php
    /**
    * @version $Id: index.php 8078 2007-07-19 06:45:54Z robs $
    * @Translator: Joomla Spanish 
    * @Review : shacker | 22/07/07
    * @package Joomla
    * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
    * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
    * Joomla! is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See COPYRIGHT.php for copyright notices and details.
    */

    // Set flag that this is a parent file
    define'_VALID_MOS');

    if (!
    file_exists'../configuration.php' )) {
        
    header'Location: ../installation/index.php' );
        exit();
    }

    require( 
    '../globals.php' );
    require_once( 
    '../configuration.php' );

    // SSL check - $http_host returns <live site url>:<port number if it is 443>
    $http_host explode(':'$_SERVER['HTTP_HOST'] );
    if( (!empty( 
    $_SERVER['HTTPS'] ) && strtolower$_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr$mosConfig_live_site0) != 'https://' ) {
        
    $mosConfig_live_site 'https://'.substr$mosConfig_live_site);
    }

    require_once( 
    '../includes/joomla.php' );
    include_once ( 
    $mosConfig_absolute_path '/language/'$mosConfig_lang .'.php' );

    //Installation sub folder check, removed for work with SVN
    if (file_exists'../installation/index.php' ) && $_VERSION->SVN == 0) {
        
    define'_INSTALL_CHECK');
        include (
    $mosConfig_absolute_path .'/offline.php');
        exit();
    }

    $option strtolowerstrvalmosGetParam$_REQUEST'option'NULL ) ) );

    // mainframe is an API workhorse, lots of 'core' interaction routines
    $mainframe = new mosMainFrame$database$option'..'true );

    if (isset( 
    $_POST['submit'] )) {
        
    $usrname     stripslashesmosGetParam$_POST'usrname'NULL ) );
        
    $pass         stripslashesmosGetParam$_POST'pass'NULL ) );

        if(
    $pass == NULL) {
            echo 
    "<script>alert('Por favor ponga una contraseña'); document.location.href='index.php?mosmsg=Por favor ponga una contraseña'</script>\n";
            exit();
        }

        
    $query "SELECT COUNT(*)"
        
    "\n FROM #__users"
        
    "\n WHERE ("
        
    // Administrators
        
    "\n gid = 24"
        
    // Super Administrators
        
    "\n OR gid = 25"
        
    "\n )"
        
    ;
        
    $database->setQuery$query );
        
    $count intval$database->loadResult() );
        if (
    $count 1) {
            
    mosErrorAlert_LOGIN_NOADMINS );
        }

        
    $my null;
        
    $query "SELECT u.*, m.*"
        
    "\n FROM #__users AS u"
        
    "\n LEFT JOIN #__messages_cfg AS m ON u.id = m.user_id AND m.cfg_name = 'auto_purge'"
        
    "\n WHERE u.username = " $database->Quote$usrname )
        . 
    "\n AND u.block = 0"
        
    ;
        
    $database->setQuery$query );
        
    $database->loadObject$my );

        
    /** find the user group (or groups in the future) */
        
    if (@$my->id) {
            
    $grp             $acl->getAroGroup$my->id );
            
    $my->gid         $grp->group_id;
            
    $my->usertype     $grp->name;

            
    // Conversion to new type
            
    if ((strpos($my->password':') === false) && $my->password == md5($pass)) {
                
    // Old password hash storage but authentic ... lets convert it
                
    $salt mosMakePassword(16);
                
    $crypt md5($pass.$salt);
                
    $my->password $crypt.':'.$salt;

                
    // Now lets store it in the database
                
    $query 'UPDATE #__users ' .
                        
    'SET password = '.$database->Quote($my->password) .
                        
    'WHERE id = '.(int)$my->id;
                
    $database->setQuery($query);
                if (!
    $database->query()) {
                    
    // This is an error but not sure what to do with it ... we'll still work for now
                
    }
            }

            list(
    $hash$salt) = explode(':'$my->password);
            
    $cryptpass md5($pass.$salt);

            if ( 
    strcmp$hash$cryptpass ) || !$acl->acl_check'administration''login''users'$my->usertype ) ) {
                
    mosErrorAlert("Incorrect Username, Password, or Access Level.  Please try again""document.location.href='index.php'");
            }

            
    session_namemd5$mosConfig_live_site ) );
            
    session_start();

            
    // construct Session ID
            
    $logintime    time();
            
    $session_id md5$my->id $my->username $my->usertype $logintime );


            
    // add Session ID entry to DB
            
    $query "INSERT INTO #__session"
            
    "\n SET time = " $database->Quote$logintime ) . ", session_id = " $database->Quote$session_id ) . ", userid = " . (int) $my->id ", usertype = " $database->Quote$my->usertype) . ", username = " $database->Quote$my->username )
            ;
            
    $database->setQuery$query );
            if (!
    $database->query()) {
                echo 
    $database->stderr();
            }

            
    // check if site designated as a production site
            // for a demo site allow multiple logins with same user account
            
    if ( $_VERSION->SITE == ) {
                
    // delete other open admin sessions for same account
                
    $query "DELETE FROM #__session"
                
    "\n WHERE userid = " . (int) $my->id
                
    "\n AND username = " $database->Quote$my->username )
                . 
    "\n AND usertype = " $database->Quote$my->usertype )
                . 
    "\n AND session_id != " $database->Quote$session_id )
                
    // this ensures that frontend sessions are not purged
                
    "\n AND guest = 1"
                
    "\n AND gid = 0"
                
    ;
                
    $database->setQuery$query );
                if (!
    $database->query()) {
                    echo 
    $database->stderr();
                }
            }

            
    $_SESSION['session_id']             = $session_id;
            
    $_SESSION['session_user_id']         = $my->id;
            
    $_SESSION['session_username']         = $my->username;
            
    $_SESSION['session_usertype']         = $my->usertype;
            
    $_SESSION['session_gid']             = $my->gid;
            
    $_SESSION['session_logintime']         = $logintime;
            
    $_SESSION['session_user_params']    = $my->params;
            
    $_SESSION['session_userstate']         = array();

            
    session_write_close();

            
    $expired 'index2.php';

            
    // check if site designated as a production site
            // for a demo site disallow expired page functionality
            
    if ( $_VERSION->SITE == && @$mosConfig_admin_expired === '1' ) {
                
    $file     $mainframe->getPath'com_xml''com_users' );
                
    $params =& new mosParameters$my->params$file'component' );

                
    $now     time();

                
    // expired page functionality handling
                
    $expired         $params->def'expired''' );
                
    $expired_time     $params->def'expired_time''' );

                
    // if now expired link set or expired time is more than half the admin session life set, simply load normal admin homepage
                
    $checktime = ( $mosConfig_session_life_admin $mosConfig_session_life_admin 1800 ) / 2;
                if (!
    $expired || ( ( $now $expired_time ) > $checktime ) ) {
                    
    $expired 'index2.php';
                }
                
    // link must also be a Joomla link to stop malicious redirection
                
    if ( strpos$expired'index2.php?option=com_' ) !== ) {
                    
    $expired 'index2.php';
                }

                
    // clear any existing expired page data
                
    $params->set'expired''' );
                
    $params->set'expired_time''' );

                
    // param handling
                
    if (is_array$params->toArray() )) {
                    
    $txt = array();
                    foreach ( 
    $params->toArray() as $k=>$v) {
                        
    $txt[] = "$k=$v";
                    }
                    
    $saveparams implode"\n"$txt );
                }

                
    // save cleared expired page info to user data
                
    $query "UPDATE #__users"
                
    "\n SET params = " $database->Quote$saveparams )
                . 
    "\n WHERE id = " . (int) $my->id
                
    "\n AND username = " $database->Quote$my->username )
                . 
    "\n AND usertype = " $database->Quote$my->usertype )
                ;
                
    $database->setQuery$query );
                
    $database->query();
            }

            
    // check if auto_purge value set
            
    if ( $my->cfg_name == 'auto_purge' ) {
                
    $purge     $my->cfg_value;
            } else {
            
    // if no value set, default is 7 days
                
    $purge     7;
            }
            
    // calculation of past date
            
    $past date'Y-m-d H:i:s'time() - $purge 60 60 24 );

            
    // if purge value is not 0, then allow purging of old messages
            
    if ($purge != 0) {
            
    // purge old messages at day set in message configuration
                
    $query "DELETE FROM #__messages"
                
    "\n WHERE date_time < " $database->Quote$past )
                . 
    "\n AND user_id_to = " . (int) $my->id
                
    ;
                
    $database->setQuery$query );
                if (!
    $database->query()) {
                    echo 
    $database->stderr();
                }
            }

            
    /** cannot using mosredirect as this stuffs up the cookie in IIS */
            // redirects page to admin homepage by default or expired page
            
    echo "<script>document.location.href='$expired';</script>\n";
            exit();
        } else {
            
    mosErrorAlert("Nombre de usuario o clave incorrecto. Intenta de nuevo""document.location.href='index.php?mosmsg=Nombre de usuario o clave incorrecto. Intentar de nuevo'");
        }
    } else {
        
    initGzip();
        
    $path $mosConfig_absolute_path '/administrator/templates/' $mainframe->getTemplate() . '/login.php';
        require_once(
    $path'/home/fauna/domains/faunaurbana.org/public_html/administrator/templates/joomla_admin/login.php' (include_path='../usr/local/lib/php' );
        
    doGzip();
    }
    ?>
    Share on Google+

  7. #7
    Senior Member
    Join Date
    Jan 2005
    Location
    Oxford, UK
    Posts
    582
    Right at the end:
    PHP Code:
    require_once($path'/home/fauna/domains/faunaurbana.org/public_html/administrator/templates/joomla_admin/login.php' (include_path='../usr/local/lib/php' );
        
    doGzip(); 
    there should be a '.' after $path.
    Share on Google+

  8. #8
    Junior Member
    Join Date
    Apr 2008
    Posts
    1
    Code:
    <script language=\"javascript\">
    var newWin = null;
    function closeWin(){
            if (newWin != null){
                    if(!newWin.closed)
                    newWin.close();
            }
    }
    function popUp(strURL,strType,strHeight,strWidth) {
            closeWin();
            var strOptions="";
            if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
            if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
            if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
            newWin = window.open(strURL, 'newWin', strOptions);
            newWin.focus();
    }
    </script>
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'

    why bro?!
    Share on Google+

  9. #9
    Junior Member
    Join Date
    May 2009
    Posts
    1

    Post Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

    I am not sure where the ')' should go, I have tried so many different options and it still isn't working!

    Please help.

    Thanks,
    PHP Code:
    <?php
    $post_notification_strings 
    = array(
        
    'error' => 'エラー',
        
    'already_subscribed' => 'すでに登録しました!',
        
    'activation_faild' => 'アクティベーション失敗しました。',
        
    'address_not_in_database' => 'あなたのメールアドレスはデータベースが見つかりませんでした。',
        
    'sign_up_again'=>'再登録下さい。',
        
    'deaktivated' => '無効になりました。',
        
    'no_longer_activated' => '@@addr は無効になりました。',
        
    'check_email' => '正しいメールアドレスをご記入下さい。',
        
    'wrong_captcha' => 'ご記入の文字や数字は上記のイメージと違います。',
        
    'registration_successful' => '登録成功',
        
    'activated' => 'アクティベーション成功',
        
    'all' => '全部',
        
    'saved' => '設定保存しました。',
        
    'unsubscribe_mail' => &#12461;ャンセルリンクがついているメールお送りいたしました。',
        
    'welcome' => '@@blogname に登録しました。',
    )
    ?>
    Share on Google+

  10. #10
    NMaOtBG bpat1434's Avatar
    Join Date
    Oct 2004
    Location
    Around 255.255.255.0
    Posts
    7,849
    Missing a single quote on this line:
    Code:
    'unsubscribe_mail' => キャンセルリンクがついているメールお送りいたしました。',
    You need a single quote before the ampersand.
    Share on Google+

  11. #11
    Junior Member
    Join Date
    Sep 2009
    Posts
    3

    hi

    hi im new here, i think or maybe i already signup long time ago don't remember

    anyway i found this by chance looking in google for

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\index.php on line 383

    i think this post will be kinda long but to make it short, i have a problem with this

    this is the original code

    Code:
    // Loop through the files
    while (false !== ($file = readdir($dir))) {
            if (in_array($file, $exclude) == FALSE){
                    $ext = pathinfo($path.$file);
                    $ext = $ext['extension'];
                    $file = str_replace($ext, '', $file);
                 echo '<ul class="photo"><li><a href="'.$pathtoflv.$file.'flv"><span> </span><img src="'.$path.$file.'jpg" alt="'.$file.'" /></a><span></span></a></li><br></ul>';
     }
    }

    the problem is this
    <a href="'.$pathtoflv.$file.'flv">
    why isn't this working


    Code:
    // Loop through the files
    while (false !== ($file = readdir($dir))) {
            if (in_array($file, $exclude) == FALSE){
                    $ext = pathinfo($path.$file);
                    $ext = $ext['extension'];
                    $file = str_replace($ext, '', $file);
                 echo '<ul class="photo"><li> <a href="#" onclick="vlc_controls.play(\'.$pathtoflv.$file.'\'flv\')"><span> </span><img src="'.$path.$file.'jpg" alt="'.$file.'" /></a><span></span></a></li><br></ul>';


    this code, <a href="#" onclick="vlc_controls.play(\'.$pathtoflv.$file.'\'flv\')">

    should give html output like this


    <a href="#" onclick="vlc_controls.play('http://code.revolunet.com/VLCjs/rambo.mpg')">rambo trailer</a>
    i'm following this page http://www.revolunet.com/labo/code/VLCcontrols


    here is all my project files http://www.megaupload.com/?d=T4YSX4YJ

    please somebody just 10 mints of your time to check whats wrong with it, inside zip only index.php you need to look and php code is very short.


    please have a look into it, somebody

    thank you
    Share on Google+

  12. #12
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    13,816
    PHP Code:
    // missing single quote-----------------------------------------------v
    echo '<ul class="photo"><li> <a href="#" onclick="vlc_controls.play(\'' .
    $pathtoflv $file '\'flv\')"><span> </span><img src="' $path $file .
    'jpg" alt="' $file '" /></a><span></span></a></li><br></ul>'
    Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." ~ from Nation, by Terry Pratchett

    "But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because he’s a better programmer now!" ~ http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html


    eBookworm.us
    Share on Google+

  13. #13
    Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Red face

    thanks very much, but now im starting to think there is some bug with php its self

    the html output looks ok

    <ul class="photo"><li> <a href="#" onclick="vlc_controls.play('./2.'flv')"><span> </span><img src="./2.jpg" alt="2." /></a><span></span></a></li><br></ul><
    everything seems ok, when i click on thumbnail nothing happens it supposed start streaming
    Share on Google+

  14. #14
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Quote Originally Posted by NogDog View Post
    PHP Code:
    // missing single quote-----------------------------------------------v
    echo '<ul class="photo"><li> <a href="#" onclick="vlc_controls.play(\'' .
    $pathtoflv $file '\'flv\')"><span> </span><img src="' $path $file .
    'jpg" alt="' $file '" /></a><span></span></a></li><br></ul>'
    yessss its working but i had to change little thing,

    // Loop through the files
    while (false !== ($file = readdir($dir))) {
    if (in_array($file, $exclude) == FALSE){
    $ext = pathinfo($path.$file);
    $ext = $ext['extension'];

    $file = str_replace($ext, '', $file);
    echo '<ul class="photo"><li> <a href="#" onclick="vlc_controls.play(\'' .$pathtoflv . $file . 'flv\')"><span> </span><img src="' . $path . $file . 'jpg" alt="' . $file . '" /></a><span></span></a></li><br></ul>';

    this one works on firefiox yahoo

    <a href="#" onclick="vlc_controls.play(\'' .$pathtoflv . $file . 'flv\')"><
    it had extra '\'flv\')"> it should've been 'flv\')">

    now im wondering why on IE8 it doesnt work.
    Share on Google+

  15. #15
    Junior Member
    Join Date
    Nov 2009
    Posts
    1

    Thanks

    I just had this error pop up and it was such a simple fix...but I found the answer here and wanted to pay my respects. Thanks for posting the fix.

    Daniel
    Share on Google+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •