How long it needs to create content

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
net-laden
Posts: 17
Joined: Fri 28. Jan 2005, 14:00
Location: Bodenwerder

How long it needs to create content

Post by net-laden »

moin, ich muß hier ein altes Thema nochmal aufgreifen.

vor einem Jahr wurde das Thema {TIMER} schon einmal behandel, doch bei den von mir eingesetzten DEV 1.2.3 tritt das Problem nun wieder von neuem auf, allerdings nicht mehr in der "front.func.inc.php", sondern wie es aussieht direkt beim Aufruf in der "index.php".

Code: Select all

Fatal error: Call to a member function on a non-object in /usr/export/www/hosting/test/index.php on line 267
der Aufruf sieht derzeit wie folgt aus:

Code: Select all

$timer->stop('main');
$t = $timer->get_current('main');
$t = number_format ( $t, 5, '.', ','); //number_format ( float number, int decimals, string dec_point, string thousands_sep)
$content["all"] = str_replace('{TIMER}', $t.' sec', $content["all"]);
echo '<div align="center" style="margin-top:15px;border-top:1px dotted #cccccc;font-size:9px;"><div style="margin-top:5px;">generiert in: '.$t.' sec Searchable: '.$cache_searchable.'</div></div>';
net-laden
Posts: 17
Joined: Fri 28. Jan 2005, 14:00
Location: Bodenwerder

Post by net-laden »

da hab ich mir wohl selbst ein Bein gestellt. :oops:
den Teil ganz oben hatte ich übersehen

Code: Select all

// this is for testing only
// returns how long this script is processed
// remove comments // to use this - look at the end of this
// page too
//
//require ("include/inc_ext/phpsniff/phpTimer.class.php");
//$timer =& new phpTimer();
//$timer->start('main');
nun geht alles
Post Reply