cvs: presentations /slides/intro yql.xml

From: Date: Tue, 24 Feb 2009 17:51:15 +0000
Subject: cvs: presentations /slides/intro yql.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1539@lists.php.net to get a copy of this message
rasmus Tue Feb 24 17:51:15 2009 UTC Modified files: /presentations/slides/intro yql.xml Log: Fix a warning http://cvs.php.net/viewvc.cgi/presentations/slides/intro/yql.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/yql.xml diff -u presentations/slides/intro/yql.xml:1.2 presentations/slides/intro/yql.xml:1.3 --- presentations/slides/intro/yql.xml:1.2 Tue Feb 24 17:42:15 2009 +++ presentations/slides/intro/yql.xml Tue Feb 24 17:51:15 2009 @@ -34,7 +34,7 @@ define('MINSZ',10); function cache($url) { $tmp = '/tmp/'.md5($url); - $st = stat($tmp); + if(file_exists($tmp)) $st = stat($tmp); if(!$st || $st && ($st['size']<MINSZ || $st['mtime']<(time()-7200))) { if($st && $st['size']>=MINSZ) touch($tmp); // Keep re-using entry $stream = fopen($url,'r'); // until new is ready

« previous php.pres (#1539) next »