• PHP Help General Help
  • [RESOLVED] Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

Hello everyone, i'm quite stuck here. And I can't find the mistake. It happend when I moved my intra two another server. Any help is relly appreciated.🙂

and here's the error message.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/main_config.inc on line 9 
<?php
// error_reporting(E_ALL);

$cfg=array(
	'dirs'=>array(
#/home/www/aa/net.fein-elast.ee/include/lib/Savant/Savant3-3.0.1
		'savant'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Savant/Savant3-3.0.1/'
#'savant'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Savant3-3.0.0/',	
		'smarty'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Smarty-3.1.10/libs/',
		'xajax'		=>		'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/xajax_0.2_stable/',
		'xajax_public'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/public/js/xajax_js/',
		'phpmailer'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/phpmailer-1.72/',
		'php_dir'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/php/',
		'modules'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/modules/',
		'config'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/init/',
		'init'			=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/init/',
		'lib'			=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/',
		'files'			=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/files/',
		'cache'			=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/cache/',
		'system_lib'		=>	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/PEAR_php-5.0.0/',
		'glob_classes' 		=> 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/classes/',
		'oo_template_path' 	=> 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/',
		'oo_calc2pdf_script_path' => 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/calc2pdf.sh',
		'oo_write2pdf_script_path' => 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/calc2pdf.sh',
		'oo2_calc2pdf_script_path' => 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/oo2_calc2pdf.sh',
		'oo2_write2pdf_script_path' => 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/oo2_write2pdf.sh',
		'oo_zip_script_path' 	=> 	'/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/makezip.sh'
		#'savant'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/Savant3-3.0.0/',	
		#'smarty'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/Smarty-2.6.3/libs/',
		#'xajax'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/xajax_0.2_stable/',
		#'xajax_public'		=>	'/export/httpd/virtual/net.fein-elast.ee/public/js/xajax_js/',
		#'phpmailer'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/phpmailer-1.72/',
		#'php_dir'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/php/',
		#'modules'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/modules/',
		#'config'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/init/',
		#'init'		=>	'/export/httpd/virtual/net.fein-elast.ee/include/init/',
		#'lib'			=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/',
		#'files'			=>	'/export/httpd/virtual/net.fein-elast.ee/private/files/',
		#'cache'			=>	'/export/httpd/virtual/net.fein-elast.ee/private/cache/',
		#'system_lib'	=>	'/export/httpd/virtual/net.fein-elast.ee/include/lib/PEAR_php-5.0.0/',
		#'glob_classes' => '/export/httpd/virtual/net.fein-elast.ee/include/classes/',
		#'oo_template_path' => '/export/httpd/virtual/net.fein-elast.ee/private/',
		#'oo_calc2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/calc2pdf.sh',
		#'oo_write2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/calc2pdf.sh',
		#'oo2_calc2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/oo2_calc2pdf.sh',
		#'oo2_write2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/oo2_write2pdf.sh',
		#'oo_zip_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/makezip.sh'
		),
	'db'=>array(),
	'global_vars'=>array()
	);
//$cfg['urls']['self'] = "http://".$HTTP_HOST.$PHP_SELF;
$cfg['urls']['self'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
if(strval($_SERVER['QUERY_STRING'])>'') { $abx=$_SERVER['REQUEST_URI']; } else { $abx=$_SERVER['PHP_SELF'].'?a=1'; }
$cfg['urls']['request'] = "http://".$_SERVER['HTTP_HOST'].$abx;
/*
$cfg['urls']['XML_source_base_cars'] = "http://127.0.0.1/vulcan/index_bin.php?action=cars&inner_function_ID=4&";
$cfg['urls']['XML_source_base_dealers'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=dealers&inner_function_ID=4&";
$cfg['urls']['XML_source_base_proposals'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=proposals&inner_function_ID=4&";
$cfg['urls']['files_source_base'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=show_pic&fname=";
$cfg['cache']['glob_cache_time']=86400; $cfg['cache']['use_only_cache']=false;
*/
// first things first - start error reporting
	// include class
//	require_once($cfg['dirs']['lib'].'errorReporter\errorReporter.class.php');
	// initialize error reporter
//	$error = new errorReporter();

// use base tables (person, tags, functions)
$cfg['glob']['use_basetables']=true;
// turn on/off sessions and authentication (if no auth, default_resource needs to be defined)
$cfg['sessions']['use']=true;
$cfg['sessions']['default_resource']='models/controller.php';
// timeout in minutes, not implemented yet (should be per user timeouts)
$cfg['sessions']['timeout']=10;

$content_types=array(
	'PDF'=>'application/pdf',
	'EXCEL'=>'application/vnd.ms-excel',
	'XLS'=>'application/vnd.ms-excel',
	'HTML'=>'text/html',
	'WORD'=>'application/msword',
	'TXT'=>'application/msword',
	'SXC'=>'application/vnd.sun.xml.calc',
	'SXW'=>'application/vnd.sun.xml.writer',
	'ODS'=>'application/vnd.oasis.opendocument.spreadsheet',
	'ODT'=>'application/vnd.oasis.opendocument.text'
	);

$cfg['packages']['SYSTEM']['use']=true;
$cfg['packages']['CRM']['use']=true;
$cfg['packages']['PERSONELL']['use']=true;
$cfg['packages']['PROD']['use']=false;
$cfg['packages']['PRODBASE']['use']=true;
$cfg['packages']['PRODPLAN']['use']=true;
$cfg['packages']['PRODFLOOR']['use']=true;
$cfg['packages']['STORE']['use']=true;
$cfg['packages']['SYSTEM']['enable_translation_vars']=true;

if(is_file('../include/main_config_local.inc')) {
	require_once('../include/main_config_local.inc');
	}
$cfg['bodycolor']="#ffffff";
?>

    You're missing a comma in your $cfg array on the first line.

    <?php 
    // error_reporting(E_ALL); 
    
    $cfg=array( 
        'dirs'=>array( 
    #/home/www/aa/net.fein-elast.ee/include/lib/Savant/Savant3-3.0.1 
            'savant'        =>    '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Savant/Savant3-3.0.1/' , //***** HERE *******
    #'savant'        =>    '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Savant3-3.0.0/',     
    'smarty' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/Smarty-3.1.10/libs/', 'xajax' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/xajax_0.2_stable/', 'xajax_public' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/public/js/xajax_js/', 'phpmailer' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/phpmailer-1.72/', 'php_dir' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/php/', 'modules' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/modules/', 'config' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/init/', 'init' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/init/', 'lib' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/', 'files' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/files/', 'cache' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/cache/', 'system_lib' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/lib/PEAR_php-5.0.0/', 'glob_classes' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/classes/', 'oo_template_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/private/', 'oo_calc2pdf_script_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/calc2pdf.sh', 'oo_write2pdf_script_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/calc2pdf.sh', 'oo2_calc2pdf_script_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/oo2_calc2pdf.sh', 'oo2_write2pdf_script_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/oo2_write2pdf.sh', 'oo_zip_script_path' => '/volume1/homes/tonisl/www/aa/net.fein-elast.ee/include/sh/makezip.sh' #'savant' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/Savant3-3.0.0/',
    #'smarty' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/Smarty-2.6.3/libs/', #'xajax' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/xajax_0.2_stable/', #'xajax_public' => '/export/httpd/virtual/net.fein-elast.ee/public/js/xajax_js/', #'phpmailer' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/phpmailer-1.72/', #'php_dir' => '/export/httpd/virtual/net.fein-elast.ee/include/php/', #'modules' => '/export/httpd/virtual/net.fein-elast.ee/include/modules/', #'config' => '/export/httpd/virtual/net.fein-elast.ee/include/init/', #'init' => '/export/httpd/virtual/net.fein-elast.ee/include/init/', #'lib' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/', #'files' => '/export/httpd/virtual/net.fein-elast.ee/private/files/', #'cache' => '/export/httpd/virtual/net.fein-elast.ee/private/cache/', #'system_lib' => '/export/httpd/virtual/net.fein-elast.ee/include/lib/PEAR_php-5.0.0/', #'glob_classes' => '/export/httpd/virtual/net.fein-elast.ee/include/classes/', #'oo_template_path' => '/export/httpd/virtual/net.fein-elast.ee/private/', #'oo_calc2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/calc2pdf.sh', #'oo_write2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/calc2pdf.sh', #'oo2_calc2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/oo2_calc2pdf.sh', #'oo2_write2pdf_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/oo2_write2pdf.sh', #'oo_zip_script_path' => '/export/httpd/virtual/net.fein-elast.ee/include/sh/makezip.sh' ), 'db'=>array(), 'global_vars'=>array() ); //$cfg['urls']['self'] = "http://".$HTTP_HOST.$PHP_SELF; $cfg['urls']['self'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; if(strval($_SERVER['QUERY_STRING'])>'') { $abx=$_SERVER['REQUEST_URI']; } else { $abx=$_SERVER['PHP_SELF'].'?a=1'; } $cfg['urls']['request'] = "http://".$_SERVER['HTTP_HOST'].$abx; /* $cfg['urls']['XML_source_base_cars'] = "http://127.0.0.1/vulcan/index_bin.php?action=cars&inner_function_ID=4&"; $cfg['urls']['XML_source_base_dealers'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=dealers&inner_function_ID=4&"; $cfg['urls']['XML_source_base_proposals'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=proposals&inner_function_ID=4&"; $cfg['urls']['files_source_base'] = "https://fly.kommest.ee/vulcan/index_bin.php?action=show_pic&fname="; $cfg['cache']['glob_cache_time']=86400; $cfg['cache']['use_only_cache']=false; */ // first things first - start error reporting // include class // require_once($cfg['dirs']['lib'].'errorReporter\errorReporter.class.php'); // initialize error reporter // $error = new errorReporter(); // use base tables (person, tags, functions) $cfg['glob']['use_basetables']=true; // turn on/off sessions and authentication (if no auth, default_resource needs to be defined) $cfg['sessions']['use']=true; $cfg['sessions']['default_resource']='models/controller.php'; // timeout in minutes, not implemented yet (should be per user timeouts) $cfg['sessions']['timeout']=10; $content_types=array( 'PDF'=>'application/pdf', 'EXCEL'=>'application/vnd.ms-excel', 'XLS'=>'application/vnd.ms-excel', 'HTML'=>'text/html', 'WORD'=>'application/msword', 'TXT'=>'application/msword', 'SXC'=>'application/vnd.sun.xml.calc', 'SXW'=>'application/vnd.sun.xml.writer', 'ODS'=>'application/vnd.oasis.opendocument.spreadsheet', 'ODT'=>'application/vnd.oasis.opendocument.text' ); $cfg['packages']['SYSTEM']['use']=true; $cfg['packages']['CRM']['use']=true; $cfg['packages']['PERSONELL']['use']=true; $cfg['packages']['PROD']['use']=false; $cfg['packages']['PRODBASE']['use']=true; $cfg['packages']['PRODPLAN']['use']=true; $cfg['packages']['PRODFLOOR']['use']=true; $cfg['packages']['STORE']['use']=true; $cfg['packages']['SYSTEM']['enable_translation_vars']=true; if(is_file('../include/main_config_local.inc')) { require_once('../include/main_config_local.inc'); } $cfg['bodycolor']="#ffffff"; ?>
      Write a Reply...