Link Share Friends
Dave's Daily Funny Links videos
Humor Planet Funny jokes, funny pictures
GreenFriends.com - The best place in the world for meeting vegetarian friends and singles.
Russian brides dating

Dating Sites List
Top-Date.org: Marriage and Dating Sites
The Internet Dating Guide - Internet dating tips, hints, stories, and site reviews.
|
|
Current chat status:
|
Featured Profiles |
| To be considered for a Featured Profile listing your profile must include a photo
|
Daily Articles
%s",
trim($link),htmlspecialchars(trim($title)));
printf("- %s
",htmlspecialchars(trim($description)));
$title = "";
$description = "";
$link = "";
$insideitem = false;
}
}
}
function characterData($parser, $data) {
global $insideitem, $tag, $title, $description, $countlinks, $link;
if ($insideitem) {
if($countlinks < 40){
switch ($tag) {
case "TITLE":
$title .= $data;
break;
case "DESCRIPTION":
$description .=strip_tags($data);
break;
case "LINK":
$link .= $data;
$countlinks++;
break;
}
}
}
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$fp = fopen("http://www.ivillage.com/rss/0,,187712131206,00.xml","r");
if(!$fp){echo("Error reading daily articles.");
} else {
while ($data = fread($fp, 4096))
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
fclose($fp);
}
xml_parser_free($xml_parser);
echo(' Articles supplied by Cosmo Magazine');
/*
echo("For the Guys");
$insideitem = false;
$tag = "";
$title = "";
$description = "";
$link = "";
$countlinks = 0;
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$fp = fopen("http://www.menshealth.com/cda/newssliderenhancedxml.do?rss=yes","r");
if(!$fp){echo("Error reading daily articles.");
} else {
while ($data = fread($fp, 4096))
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
fclose($fp);
}
xml_parser_free($xml_parser);
*/
?>
|
|
|