$_POST['video_thumbnail'] = '';
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 if ($isValidYoutube === 0 && $isValidVimeoURL === 0 && $isValidUrlSoundCloud === 0 && $isValidDailymotionURL === 0 && $isValidScreenrURL === 0 && $isValidDotsubURL === 0 && $isValidHuluURL === 0 && $isValidSlideShareURL === 0 && $isValidBlipURL === 0 && mb_strlen(trim($_POST['add_post']), 'utf8') == 0 && $_POST['photoId'] == '') {
     $error = 1;
     return false;
 }
 if ($urlMedia != '' && $isValidYoutube === 0 && $isValidVimeoURL === 0 && $isValidUrlSoundCloud === 0 && $isValidDailymotionURL === 0 && $isValidScreenrURL === 0 && $isValidDotsubURL === 0 && $isValidHuluURL === 0 && $isValidSlideShareURL === 0 && $isValidBlipURL === 0) {
     $html = _Function::file_get_contents_curl($urlMedia);
     $_parse = parse_url($urlMedia);
     $_host = $_parse['host'];
     //parsing begins here:
     $doc = new DOMDocument();
     @$doc->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
     $nodes = $doc->getElementsByTagName('title');
     //get and display what you need:
     $title = $nodes->item(0)->nodeValue;
     $metas = $doc->getElementsByTagName('meta');
     for ($i = 0; $i < $metas->length; ++$i) {
         $meta = $metas->item($i);
         if ($meta->getAttribute('name') == 'description') {
             $description = $meta->getAttribute('content');
         }
         //<-- name