Help with unexpected t string parse error

Discussion in 'PHP' started by mayhem3x, Mar 31, 2008.

  1. #1
    Hi,

    I need some help with this code that just came up.
    Parse error: syntax error, unexpected T_STRING in public_html/includes/application_top.php on line 41

    When I look at it I don't see anything wrong so that's why i'm here. Let me know what you think.

    <?


    define('MAX_WIDTH', 750);
    define('COL_WIDTH', 220);

    define('HTTP_SERVER', 'http://domain');
    define('HTTPS_SERVER', 'https://domain');
    define('ENABLE_SSL', 0);
    define('DIR_SERVER_ROOT', '/home/users/web/b2635/company/public_html/');
    define('DIR_CATALOG', '/');
    define('DIR_IMAGES', '/images/');
    define('DIR_INCLUDES', DIR_SERVER_ROOT . 'includes/');
    define('DIR_BOXES', DIR_INCLUDES . 'boxes/');
    define('DIR_FUNCTIONS', DIR_INCLUDES . 'functions/');
    define('DIR_MODULES', DIR_INCLUDES . 'modules/');
    define('DIR_LANGUAGES', DIR_INCLUDES . 'languages/');
    define('STORE_NAME', 'company');
    define('STORE_OWNER', 'company');
    define('EMAIL', 'email');
    define('SEARCH_PAGE_LIMIT', 2);
    define('PHONE_1800_NUMBER', 'phone');
    define('FAX', 'fax');
    define('PRODUCTS_PER_ROW', 3);
    define('SEARCH_RESULTS', 20);
    define('SEARCH_RESULTS_LIMIT', 200);

    define('EXIT_AFTER_REDIRECT', 0);
    define('STORE_PAGE_PARSE_TIME', 0);
    define('STORE_PAGE_PARSE_TIME_LOG', DIR_SERVER_ROOT . 'logs/exchange/parse_time_log');

    define('STORE_PARSE_DATE_TIME_FORMAT', '%d/%m/%Y %H:%M:%S');
    if (STORE_PAGE_PARSE_TIME == '1') {
    $parse_start_time = microtime();
    }


    $include_file = DIR_FUNCTIONS . 'sessions.php'; include(DIR_INCLUDES . 'include_once.php');


    tep_ session_save_path("/home/users/web/b2635/company/phpsessions");
    session_start();



    define('FILENAME_ACCOUNT', 'account.php');
    define('FILENAME_ACCOUNT_EDIT', 'account_edit.php');
    define('FILENAME_ACCOUNT_EDIT_PROCESS', 'account_edit_process.php');
    define('FILENAME_ACCOUNT_HISTORY', 'account_history.php');
    define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php');
    define('FILENAME_ADDRESS_BOOK', 'address_book.php');
    define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php');
    define('FILENAME_CHECKOUT', 'checkout.php');
    define('FILENAME_CHECKOUT_ADDRESS', 'checkout_address.php');
    define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php');
    define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php');
    define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php');
    define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php');
    define('FILENAME_CREATE_ACCOUNT', 'create_account.php');
    define('FILENAME_CREATE_ACCOUNT_PROCESS', 'create_account_process.php');
    define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php');
    define('FILENAME_DEFAULT', 'default.php');
    define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php');
    define('FILENAME_LOGIN', 'login.php');
    define('FILENAME_LOGOFF', 'logoff.php');
    define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php');
    define('FILENAME_PRODUCT_INFO', 'product_info.php');
    define('FILENAME_PRODUCT_LIST', 'product_list.php');
    define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php');
    define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php');
    define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php');
    define('FILENAME_REVIEWS', 'reviews.php');
    define('FILENAME_SEARCH', 'search.php');
    define('FILENAME_SHOPPING_CART', 'shopping_cart.php');
    define('FILENAME_SPECIALS', 'specials.php');

    I didn't do the entire page since there's alot more. I figure the problem is line 41 and the rest matches up. I also have line 41 in blue

    Thanks
     
    mayhem3x, Mar 31, 2008 IP
  2. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    There seems to be an unwanted space after tep_. Delete that and try again.:)
     
    Bagi Zoltán, Mar 31, 2008 IP
  3. mayhem3x

    mayhem3x Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks that did it.
     
    mayhem3x, Mar 31, 2008 IP