Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-03 Thread Greg Donald
On Wed, 3 Oct 2007, Mark wrote: I'm currently fetching feeds about every hour (automatically in php) but sometimes there are no new updates in a feed for 2 hours. so no i wonder if it's possible to check the feed somehow to see if it changed since i last fetched it and if it's the case than

Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-03 Thread mike
On 10/3/07, Greg Donald [EMAIL PROTECTED] wrote: cat fsockopen.php #!/usr/bin/env php ?php $fp = fsockopen( 'destiney.com', 80, $errno, $errstr, 30 ); if( !$fp ) { echo $errstr ($errno)\n; } else { $out = GET /rss HTTP/1.1\r\n; $out .= Host: destiney.com\r\n; $out .=

Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-02 Thread mike
On 10/2/07, Mark [EMAIL PROTECTED] wrote: I'm currently fetching feeds about every hour (automatically in php) but sometimes there are no new updates in a feed for 2 hours. so no i wonder if it's possible to check the feed somehow to see if it changed since i last fetched it and if it's the