Beispiel #1
0
}
$bool = true;
if ($bool) {
    if ($pa->url_exists($url)) {
        if ($pa->with_http($url)) {
            // echo "http"
            /*
            $content = file_get_contents($url);
            $imagesArray = $pa->retrieve_images_from_url( $content , $mc , $pa , $ri );
            */
            echo " url1 = {$url} <br>";
            // $article_len =  count($article);
            echo "<hr>";
            if (strpos($url, 'youtube.com')) {
                // $pa->test_get_images_from_url( $url );
                $video_array = $pa->video($url);
                // echo "youtube";
                echo ' 	
								<h1> "' . $video_array[0]['vtitle'] . '"</h1> 
								<h2> "' . $video_array[0]['vdescription'] . '"</h2> 
								<li> 
									<iframe width="560" height="315" src="//www.youtube.com/embed/' . $video_array[0]["vid"] . '" frameborder="0" allowfullscreen></iframe>
								</li>';
            } else {
                $title = $pa->get_title_in_a_website($url);
                $desc = $pa->get_meta_data($url, 'description');
                $desc_content = $pa->get_descriptions($url);
                $desc = $pa->change_description_if_lessthan50($desc, $desc_content, 20, 1000);
                $article = $pa->get_image_article($url, $ri, 100);
                $article = $pa->remove_duplicate($article, $url);
                $article_len = count($article);