Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error


mfries

Recommended Posts

Posted

The error is given when attempting to enter my admin page:

Parse error: parse error, unexpected T_STRING in /opt/lampp/htdocs/painting/admin/includes/configure.php on line 16

 

The code is as follows:

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $
                                                                                                                            
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com                                                                                                                             
 Copyright (c) 2002 osCommerce
                                                                                                                            
 Released under the GNU General Public License
*/
                                                                                                                            
// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
                                                                                                                            
 define('HTTP_SERVER', 'http://localhost');
 define('HTTP_CATALOG_SERVER', 'http://localhost');
 define('HTTPS_CATALOG_SERVER', 'https://localhost');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'http://localhost'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/opt/lampp/htdocs/painting/admin/');
 define('DIR_WS_CATALOG', '/painting/');
 define('DIR_FS_CATALOG', '/opt/lampp/htdocs/painting/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
                                                                                                                            
// define our database connection
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'painting');
 define('DB_SERVER_PASSWORD', 'XXXX'); //blanked out for posting
 define('DB_DATABASE', 'acfcom5_painting');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');?>                                                                                                                            

 

Line 16 seems innocent enough: define('HTTP_SERVER', 'http://localhost');

No mismatched quotes etc. Any suggestions?

 

By the way, this is not a "using the online editor issue', this is on my test system, and I am using vi as an editor.

 

Thanks,

Mike

Posted

It's missing the "shebang" at the very top of the file, as well as the beginning /* to comment out the general information there. Put this at the very top of your file:

 

<?php

/*

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin, 1759. տլ

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...