cvs: pearweb /public_html/feeds feeds.php
| From: | Martin Jansen | Date: | Thu, 15 Jun 2006 21:32:19 +0000 |
| Subject: | cvs: pearweb /public_html/feeds feeds.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-40739@lists.php.net to get a copy of this message | ||
mj Thu Jun 15 21:32:19 2006 UTC
Modified files:
/pearweb/public_html/feeds feeds.php
Log:
* Changed to a more sensible prefix in the tempnam call.
# If you guys copy from Rasmus' blog, please try to at least understand the
# code ;-). What happened to the old object-oriented RSS generator code? I
# liked it quite a bit.
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/feeds/feeds.php?r1=1.7&r2=1.8&diff_format=u
Index: pearweb/public_html/feeds/feeds.php
diff -u pearweb/public_html/feeds/feeds.php:1.7 pearweb/public_html/feeds/feeds.php:1.8
--- pearweb/public_html/feeds/feeds.php:1.7 Thu Jun 15 21:30:13 2006
+++ pearweb/public_html/feeds/feeds.php Thu Jun 15 21:32:19 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Pierre-Alain Joye <pajoye@php.net> |
+----------------------------------------------------------------------+
- $Id: feeds.php,v 1.7 2006/06/15 21:30:13 mj Exp $
+ $Id: feeds.php,v 1.8 2006/06/15 21:32:19 mj Exp $
*/
require_once "pepr/pepr.php";
@@ -87,8 +87,8 @@
</rdf:RDF>";
if ($dest_file && (!file_exists($dest_file) || filemtime($dest_file) < (time() -
$timeout))) {
- $stream = fopen($url,'r');
- $tmpf = tempnam('/tmp','YWS');
+ $stream = fopen($url, 'r');
+ $tmpf = tempnam('/tmp', 'RSS');
// Note the direct write from the stream here
file_put_contents($tmpf, $stream);
fclose($stream);