Debian 7 Wheezy apt sources.list

nano /etc/apt/sources.list
## Debian Wheezy sources.list

## Debian security updates:
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

## Debian.org:
deb http://ftp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy main contrib non-free

## Debian FR mirror:
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free

## Debian US mirror:
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free

Télécharger et installer la liste:

wget /uploads/debian7/sources.list -O /etc/apt/sources.list

Mise à jour

apt-get update && apt-get upgrade -y

Script de mise à jour

echo 'apt-get update && apt-get upgrade -y' > /root/apt-upgrade.sh
chmod +x /root/apt-upgrade.sh

SimplePie RSS parser exemple script

Source PHP:

<?php

include_once(dirname(__FILE__)'/lib/SimplePieAutoloader.php');
include_once(dirname(__FILE__)'/lib/idn/idna_convert.class.php');

$feed = new SimplePie();
$feed->set_cache_location(dirname(__FILE__).'/cache');
$feed->set_useragent('');
$feed->set_feed_url('/feed/');
$feed->init();
$feed->handle_content_type();

foreach($feed->get_items() as $item) {

    $data=array(
        'post_title'=>$item->get_title(),
        'post_permalink'=>$item->get_permalink(),
        'post_content'=>$item->get_content(),
        'post_date'=>$item->get_date('Y-m-d H:i:s'),
        'post_hash'=>$item->get_id(true)
    );

unset($data);

}
?>