Home Base Printing Business Home Based Business Opportunity Home Based Business Home Based Business Ideas Home Based Business On Internet Home Based Business Opportunities 'home Based Business Opportunities' Home Based Business Opportunities And Grants Home Based Business Opportunities For Women Home Based Business Opportunities Telephone Home Based Business Opportunity Home Based Businesses Home Based Internet Business Home Based Internet Businesses Home Bases Business Opportunities Home Building Business Opportunities Home Business Business Opportunity Home Business Catalog Business Opportunity Home Business Home Business Opportunities Home Business Internet Home Business Loan Broker Opportunities Home Business Mailing Opportunitys Home Business Marketing Opportunities Home Business Marketing Opportunity Home Business Money Making Opportunity Home Business On The Internet Home Business Opportunities Home Business Opportunities From The Comfort Of Your Home Home Business Opportunities At Home Home Business Opportunities In Uk Home Business Opportunities Internet Style Home Business Opportunities Loan Manager Home Business Opportunities Loan Manager Investment Home Business Opportunities Pampered Chef Home Business Opportunities Uk Home Business Opportunities-canada Home Business Opportunity Home Business Opportunity Canada Home Business Opportunity From Uk Home Business Opportunity Malibu Home Business Opportunity Network Home Business Opportunity Resource Home Business Opportunity Seeker Home Care Business Opportunities Home Computer Business Opportunity Home Fashion Business Opportunity Home Improvement Business Opportunities Home Inspection Business Opportunities Home Internet Business Home Internet Business Companies Home Internet Business In Recycling Home Internet Business Opportunities Home Internet Business Opportunity Home Internet Businesses Home Inventory Business Opportunities Home Money Making Business Opportunities Home Money Making Business Opportunity Home Money Making Ideas Home Online Business Opportunity Home Shopping On The Internet Business Home Start Up Internet Businesses Home Theater Business Opportunities Homebase Businesses Homebased Business Homebased Business Ideas Homebased Business Opportunities Home-based Business Opportunities Homebased Internet Business How Business Almost Killed The Internet How Can A 12 Year Old Make Money Fast How Can I Make Money How Can I Make Money Online How Can I Use My Video Camera To Make Money How Can Kids Make Fast And Easy Money How Do I Make Money How Do Kids Make Money How Do People Get Rich How Do You Make Counterfeit Money How Does Riaa Make Their Money How Kids Can Make Money
How Kids Can Make Money
Go Make A Difference International volunteer organization which works to match prospective volunteers
with small social service projects around the world for short and long term ...
The Money Is No Good An alternative view examining the role of money, reassessing the workmanship that
goes into new "larger portrait" currency, and taking a closer look at the ...
Kids' Money Q & A Children ask questions and get answers on how to make money.
The Mint: Home Provides basic information about starting a business, earning money, spending it
wisely, and saving and investing. Includes quizzes, games, glossary of ...
Kids' Money For parents interested in helping their children develop successful money management
habits and financial responsibility.
Mom and Her Money Christian site for stay at home moms that wish to work at home. Filled with small
business start up ideas, reputable work from home companies, ...
Money Math Lesson Ideas
Crafts for Kids - EnchantedLearning.com Crafts for pre-school through elementary aged children.
The Dollar Stretcher On-line newsletter with articles and information about living better for less money.
Includes archives, news and a problem solving center.
Lissa Explains it All -- HTML Help and Tutorial for Kids A website that explains HTML so that anyone and everyone can understand it.
Here is where the word How Kids Can Make Money was used by the major news organizations recently.
rss_url = $url;
$this->num_to_show = $numtoshow;
$this->do_update = $update;
$this->my_html = preg_replace("/(#{.*?):(.*?})/", "\\1__\\2", $html); //xx:xx tag workaround
$this->content = $this->fetch_feed();
$this->parse_feed();
$this->show();
}
/* string */
function fetch_feed()
{
$url_parts = parse_url($this->rss_url);
$filename = $url_parts['host'] . str_replace("/", ",", $url_parts['path']) . "_" . @$url_parts['query'];
if(file_exists($this->data_directory . "/$filename")) {
$last = filemtime($this->data_directory . "/$filename");
if(time() - $last > $this->update_interval * 60 || $this->update_interval == 0) {
$update = 1;
}
} else {
$create= 1;
}
if($create == 1 || ($this->do_update == TRUE && $update == 1)) {
$fp = @fsockopen($url_parts['host'], 80, $errno, $errstr, 5);
if (!$fp) {
echo "Couldn't open rss feed {$this->feed_url} in {$_SERVER['PHP_SELF']} \n";
return;
}
fputs($fp, "GET " . $url_parts['path'] . "?" . @$url_parts['query'] . " HTTP/1.0\r\n"
."Host: " . $url_parts['host'] . "\r\n"
."User-Agent: Drew's RSS Reader 0.1\r\n"
."Connection: Close\r\n\r\n");
while(!feof($fp)) {
$rss_data .= @fgets($fp, 1024);
}
list(, $rss_data) = explode("\r\n\r\n", $rss_data, 2);
$output = @fopen($this->data_directory . "/$filename", "w+");
if(!$output) {
return $rss_data;
} else {
flock($output, LOCK_EX);
fputs($output, $rss_data);
flock($output, LOCK_UN);
fclose($output);
}
} //update
return file_get_contents($this->data_directory . "/$filename");
}
/* void */
function parse_feed()
{
preg_match("/(.*?)<\/title>/", $this->content, $title);
$this->feed_title = @$title[1];
preg_match("/ (.*?)<\/link>/", $this->content, $link);
$this->feed_link = @$link[1];
preg_match("/(.*?)<\/description>/", $this->content, $description);
$this->feed_description = @$description[1];
preg_match_all("/- ]*>(.*?)<\/item>/s", $this->content, $items);
if (sizeof($items[0]) == 0) {
echo "No item elements found in rss feed.
\n";
}
for($i = 0; $i < sizeof($items[0]); ++$i) {
preg_match_all("/(?:<([\w:]*)[^>]*>(?:)?<\/\\1>)+?/si", preg_replace("/- ]*>/", "", $items[0][$i]), $elements);
for($j = 0; $j < sizeof($elements[0]); ++$j) {
$elements[1][$j] = str_replace(":", "__", $elements[1][$j]); //regex fix for items with : like dc:date
$this->rss[$i][$elements[1][$j]] = trim(html_entity_decode($elements[2][$j]));
}
}
}
/* void */
function show()
{
if($this->my_html == "") {
$this->show_html();
} else {
$this->show_user_html();
}
}
function show_html()
{
$show = (sizeof($this->rss) > $this->num_to_show ? $this->num_to_show : sizeof($this->rss));
for($i = 0; $i < $show; ++$i) {
echo "-
rss[$i]['link']}\" target=\"_new\">{$this->rss[$i]['title']} \n";
}
}
function show_user_html()
{
$show = (sizeof($this->rss) > $this->num_to_show ? $this->num_to_show : sizeof($this->rss));
for($i = 0; $i < $show; ++$i) {
extract($this->rss[$i]);
$item = preg_replace("/#\{([^}]+)}/e", "$\\1", $this->my_html);
echo $item;
}
}
} // end class
$url = "http://www.justinpfister.com/gnewsfeed.php?q=Work&lang=en&ned=us";
$show = 2;
$html = "#{title} #{description} ";
$update = 1;
$rss = new rss_parser($url, $show, $html, $update);
$url = "http://search.news.yahoo.com/usns/ynsearch/categories/47/index.html?p=Work";
$show = 2;
$html = "#{title} #{description} ";
$update = 1;
$rss = new rss_parser($url, $show, $html, $update);
?>