Hey Jeff,
For the author name is there some way we can return an "else if" statement that says if the author title is not present(Which it is not) it out puts:
"[Unknown Author]"
Since if you leave a title blank it will say "Please Enter A Author" and you can't continue.
If this is possible can you explain how to do this for all the tags? Example:
"[Unknown Title]"
"[Unknown Author]"
"[Unknown Description]"
And if am right does it go something like this:
/**
* Gets Author from youtube id
*
* @param Youtube Id
* @return $yt_author
*/
function getauthor($videoid){
$yt_xml_author_string = @file_get_contents("http://gdata.youtube.com/feeds/api/videos?q=".$videoid);
$yt_xml_author_start = explode("<uri>http://gdata.youtube.com/feeds/api/users/",$yt_xml_author_string,2);
$yt_xml_author_end = explode("</uri></author>",$yt_xml_author_start[1],2);
$yt_author = addslashes($yt_xml_author_end[0]);
return $yt_author;
} else {
[Unknown Author]
}
-FD