View Single Post
Old 06-15-2014, 03:41 AM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
Quote:
Originally Posted by KlenTelaris View Post
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;
}
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote