$url = $_POST['newLink'];
if($url == '' || !isset($_POST['newLink']))
header('Location: index.php');
?>
Ma Page d'accueil
echo 'URL : '.$url.'
';
require('blogs_last_post.php');
$opts = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10);
$blogs = new Blogs_last_post();
$blogs->addSession($url, $opts);
$result = $blogs->exec();
echo $blogs->getAllImagesToChoose($result);
$blogs->clear();