Parse error: syntax error, unexpected T_VARIABLE

Discussion in 'Programming' started by mtcisme, May 12, 2011.

  1. #1
    So.... I am kinda new to this... and my brain is really hurting from reading posts for other people's issues. It seems I cannot figure this out because I am a.... how you say.... 'newb' :)

    I was working on this error:

    Warning: require_once(/home/content/78/7595478/html/components/html_editor/fckeditor/fckeditor.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/78/7595478/html/admin/job_frm_uil.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required '/home/content/78/7595478/html/components/html_editor/fckeditor/fckeditor.php' (include_path='.:/usr/local/php5/lib/php') in/home/content/78/7595478/html/admin/job_frm_uil.php on line 4


    When I changed the line from:

    require_once SOURCE_ROOT.'components/html_editor/fckeditor/fckeditor.php' include_path = '.:/usr/local/php5/lib/php'

    To:

    require_once SOURCE_ROOT.'components/html_editor/fckeditor/fckeditor.php' // include_path = '.:/usr/local/php5/lib/php';


    So, I am fairly sure that is right, because when I saved the changes and then tried to replicate the issue again, I got a new error message:

    Parse error: syntax error, unexpected T_VARIABLE in /home/content/78/7595478/html/admin/job_frm_uil.php on line 6


    Here are the first few lines of code, any help, CONSTRUCTIVE criticism/hand holding would be very much appreciated. I am sorry if there is already 10000000 million billon similar posts... but I cannot find the information I need :(

    <?php
    require_once '../common/config/config.inc.php';
    require_once SOURCE_ROOT.'classes/class_job_bll.php';
    require_once SOURCE_ROOT.'components/html_editor/fckeditor/fckeditor.php' // include_path = '.:/usr/local/php5/lib/php';
    // CREATING OBJECTS------------------------
    $objJob = new Job();
    //-----------------------------------------
    //check admin session
    $objAdminLogin->isValidAdmin();
    //code to get hospital records
    $arrHospitalColumn = array('pkHospitalID', 'HospitalName');
    $varHospitalWhere = ' HospitalStatus = \'Active\'';
    $arrHospitalList = $objGeneral -> getRecord(TABLE_HOSPITALS, $arrHospitalColumn, $varHospitalWhere);
    if($_SESSION['arrRecentJob'])
    {

    Please help a guy out :q
     
    Last edited: May 12, 2011
    mtcisme, May 12, 2011 IP
  2. anwaraa

    anwaraa Active Member

    Messages:
    167
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    Digital Goods:
    2
    #2
    require_once SOURCE_ROOT.'components/html_editor/fckeditor/fckeditor.php' // include_path = '.:/usr/local/php5/lib/php';

    include path is commented out'

    $varHospitalWhere = ' HospitalStatus = \'Active\'';

    That doe not look right
     
    anwaraa, May 17, 2011 IP