Home | Scripts | Tutorials | Books | Hosting | Forums | Links|

Navigation:

Home
Source code
Tutorials
RSS feeds
Articles
Books
Software
Downloads
Hosting
manuals
Forums
Script directory
Training
Our Links

ADD TO Progged Progged
ADD TO DEL.ICIO.US Del.icio.
ADD TO DIGG Digg
ADD TO FURL Furl
ADD TO NEWSVINE Newsvine
ADD TO NETSCAPE Netscape
ADD TO REDDIT Reddit
ADD TO STUMBLEUPON StumbleUpon
ADD TO TECHNORATI FAVORITES Technorati
ADD TO SQUIDOO Squidoo
ADD TO WINDOWS LIVE Windows Live
ADD TO YAHOO MYWEB Yahoo MyWeb
ADD TO ASK Ask
ADD TO GOOGLE Google
ADD TO MAGNOLIA Magnolia
ADD TO SPURL Spurl



 
 

SPONSORS



 
 

US population

This script takes the information from the US goverment census page and displays the current US population on the page.

Here is the script

<?
$url = "http://www.census.gov/cgi-bin/popclock/index.html";
$fp = fopen($url, "r");
$search = fread($fp, 32000);
fclose($fp);
$search = ereg("<CENTER><H2> (.*)</H2>", $search, $content);
echo "<h2>$content[1]</h2>";
?>

And here is what is displayed on the screen