News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Hasin Hayder's Blog:
Web scrapping in a smart way, making a "Today in History" object in PHP
April 29, 2008 @ 10:27:41

Hasin Hayder has written up a quick tutorial for his blog that shows how to create your own "Today in History" page with details from Scopesys pulled with a little web scraping.

There are thousands of services available on web who are presenting interesting as well as education information which you can really integrate in your web page or make a nice widget and let others use them seamlessly with their content delivery platforms. In this article I am going to show you how you can make a nice Today-in-History widget with the help of the data provided in Scopesys.

He wisely recommends that you check one thing first about the content you're grabbing - the copyright it carries with it. This could get you into big trouble down the line depending on whose content it is. The actual script is pretty simple - he defines some constants as markers for where things start and stop in the HTML and then uses strpos to get the locations for his substr call to grab the segments.

0 comments voice your opinion now!
todayinhistory widget copyright scopesys constant define substr strpos


blog comments powered by Disqus

Similar Posts

PHPit.net: Create your own HTML widgets with PHP

PHP-GTK Community Site: Three Widgets and a Timer Class

Nikita Popov's Blog: The true power of regular expressions

Ben Ramsey's Blog: Funcaday.com Dashboard Widget

Elizabeth Smith's Blog: Builds for gtk2 additional widgets


Community Events





Don't see your event here?
Let us know!


version framework laravel symfony list artisanfiles conference security release composer language library series tool voicesoftheelephpant introduction podcast community interview opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework