Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected ';'


Ackis

Recommended Posts

Posted

Could someone help me please,

 

I've got this message... Parse error: syntax error, unexpected ';' in /hsphere/local/home/ackispac/rcmaffian.se/oscommerce_st/catalog/includes/application_bottom.php on line 20

 

 

 

And this is what it looks like....

 

 

<?php

/*

*/

 

// close session (store variables)

tep_session_close();

 

if (STORE_PAGE_PARSE_TIME == 'true') {

$time_start = explode(' ', PAGE_PARSE_START_TIME);

$time_end = explode(' ', microtime());

$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])),

error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' - ' . getenv('REQUEST_URI') . ' (' . $parse_time . 's)' . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);

 

if (DISPLAY_PAGE_PARSE_TIME == 'true') {

echo '<span class="smallText">Parse Time: ' . $parse_time . 's</span>';

}

}

 

if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {

if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {

tep_gzip_output(GZIP_LEVEL);

}

}

?>

 

 

What am I suppose to do? :o

 

//Ackis

Jessica Fuchs

Posted
Could someone help me please,

 

I've got this message... Parse error: syntax error, unexpected ';' in /hsphere/local/home/ackispac/rcmaffian.se/oscommerce_st/catalog/includes/application_bottom.php on line 20

And this is what it looks like....

<?php

/*

*/

 

// close session (store variables)

tep_session_close();

 

if (STORE_PAGE_PARSE_TIME == 'true') {

$time_start = explode(' ', PAGE_PARSE_START_TIME);

$time_end = explode(' ', microtime());

$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])),

error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' - ' . getenv('REQUEST_URI') . ' (' . $parse_time . 's)' . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);

 

if (DISPLAY_PAGE_PARSE_TIME == 'true') {

echo '<span class="smallText">Parse Time: ' . $parse_time . 's</span>';

}

}

 

if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {

if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {

tep_gzip_output(GZIP_LEVEL);

}

}

?>

What am I suppose to do? :o

 

//Ackis

This line:

 

$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])),

Should look like this:

 

$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);

Richard.

Richard Lindsey

Posted

:D

 

Thank you Richard!!!! It worked!!! :thumbsup:

Jessica Fuchs

Archived

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

×
×
  • Create New...