Quote:
Originally Posted by KlenTelaris
Yes that is a proper way to resolve problem,but if you are lazy,you can simply add @ to problematic line
(@ is suppressor which ignores warning messages)
|
since i'm unfamiliar with php and CrazyMartin is probably not up yet, i've done as you advised and used @ sign next to problematic 996 line in php file and script it working!
thanks a lot!
my php looks like this now:
function stats_check_update_time()
{
global $C;
if( !isset($C['base_url']) )
{
return;
}
$now = time();
if( !file_exists(FILE_TIME_STATS) )
{
file_create(FILE_TIME_STATS);
}
@ $last = filemtime(FILE_TIME_STATS);
@ $date_now = date('YmdHi', $now);
@ $date_last = date('YmdHi', $last);
if( $date_now != $date_last )
{
$fp = fopen(FILE_TIME_STATS, 'w');
flock($fp, LOCK_EX | LOCK_NB, $would);
if( $would )
{
fclose($fp);
return;
}