News Feed
Sections




News Archive
feed this:

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

Jeremy Cook:
Turbocharging your Logs
October 03, 2012 @ 10:07:30

In a new post to his site Jeremy Cook introduces you to Graylog2, a logging server that can aggregate messages from multiple sources/feeds into one consolidated location.

Graylog stores them in a database and allows you to perform custom searches on them. You can also see in real time how many log messages are being received and processed. The real killer feature in Graylog is streams. A stream in Graylog is a predefined custom search. The server will display to you log messages that only match the stream criteria selected, graphing the results for you.

He mentions other features of the Graylog2 system including customized alerts, messaging via UDP/AMQP and how it uses MongoDb and ElasticSearch. He also introduces Monolog, a PHP tool that lets you log in multiple formats directly to the Graylog2 server. He includes an example of how it works with a sample "LoggingHelper" added as custom exception and error handlers.

0 comments voice your opinion now!
graylog2 tutorial monolog aggregate logging tutorial


Thomas Weinart:
What Iterators Can Do For You
August 01, 2012 @ 09:55:22

Thomas Weinert has a new post to his site showing some of the things that iterators can do for you (including working with arrays and aggregation).

Basically Iterators provide a list interface for an object. Like all interfaces they are a contract how something can be used. If you use an interface it is not relevant how it is implemented - the implementation logic is encapsulated. It is of course relevant on the integration level. A bad implementation can impact the performance of you application. Even an good implementation may need special resources (like a database). But all this does not impact how you use it. Your code using the object with the Iterator interface stays the same.

He shows how to use the IteratorAggregate, ArrayIterator, FilterIterator and how to create a custom Iterator that you can extend in your own code.

0 comments voice your opinion now!
iterator tutorial array filter aggregate custom


Brian Moon's Blog:
Monitoring PHP Errors
November 09, 2010 @ 11:09:16

Brian Moon has a new post to his blog that pulls together some of his thoughts on monitoring PHP applications and how to handle the error that might be thrown.

PHP errors are just part of the language. Some internal functions throw warnings or notices and seem unavoidable. A good case is parse_url. The point of parse_url is to take apart a URL and tell me the parts. Until recently, the only way to validate a URL was a regex. You can now use filter_var with the FILTER_VALIDATE_URL filter. But, in the past, I would use parse_url to validate the URL. It worked as the function returns false if the value is not a URL. But, if you give parse_url something that is not a URL, it throws a PHP Warning error message. The result is I would use the evil @ to suppress errors from parse_url. Long story short, you get errors on PHP systems. And you don't need to ignore them.

He talks about the two-step process he's upgraded to to help monitor and handle the errors that pop up - an error handler that logs human-readable and json versions of the errors and something like Circonus to do metric tracking. He also mentions some external services recommended on twitter - HopToad and Loggly.

0 comments voice your opinion now!
monitor error manage aggregate metric log


William's Blog:
A Popurls Clone with PHP, jQuery, Awesomeness
March 26, 2010 @ 11:48:44

In a new post to his blog William shows you how to create a Popurls clone with the powerful combination of PHP and jQuery. Popurls is an aggregation site with some of the latest news and happenings from all around the web.

Since I have a crazy workload right now, I feel this is the perfect time to write a quick n' dirty tutorial on how to build your very own Popurls. Impress your friends and/or boss with a nifty, hand made news aggregator. Yes, very buzz word friendly.

He uses the SimplePie library to pull in the information from various feeds including Digg.com, Reddit.com, Wired's news feed and Engadget. He shows how to use regular expressions to extract information from the feeds (if they're uncooperative), a bit of PHP to work around potentially empty fields and the full jQuery/HTML/CSS you'll need to make it look more like this

2 comments voice your opinion now!
tutorial popurls clone jquery feed aggregate


Development Seed Blog:
Aggregating Things in Drupal 7
July 17, 2009 @ 12:34:21

In the latest post to the Development Seed blog Alex Barth looks at some of the thoughts going on behind a replacement for the FeedAPI component of Drupal.

In the last couple months we've been driving efforts to bring Drupal's core aggregator up to speed so that we could use it to replace FeedAPI in Drupal 7. After trying to pull through some of the more extensive changes, I have to recognize that in this case the advantages of Drupal core work are not enough to outweigh the disadvantages.

While there was a real need for the update, the support just didn't seem to be there and development of the update slowed to a crawl. Alex notes that the original goals for the FeedAPI updates need to be rethought - don't replace the FeedAPI component, make a true successor instead. There's plenty of comments and thoughts from other Drupal-ers on the post, so read up!

0 comments voice your opinion now!
aggregate feedapi drupal


Community News:
PHPCamp.net Launched
January 26, 2009 @ 11:17:55

Amit Singh dropped me a note to let me know about a new community site he's developed to share PHP-related resources from all around the web (similar to DZone) called PHPCamp.net.

PHPcamp aims to provide a platform where everyone can bring interesting links, news and share their knowledge that are helpful to other web developers. It provides publishers with a chance to easily show their articles to others and gain some readers; most importantly it provides readers an easy way to keep an eye on latest things in PHP world, at the same time, giving them a chance to learn new things every day.

The site takes in user-submitted articles/blog posts/etc and they're dropped into the "freshly arrived" list for public consumption. If a link gets enough attention, its listed under the "getting hotter" and "boiling" sections progressively. Check out their blog for more information.

0 comments voice your opinion now!
link phpcamp aggregate user contribute website resource blog entry


Padraic Brady's Blog:
Zend_Feed Getting Started With Aggregating RSS/Atom Content
February 12, 2008 @ 09:32:00

Padraic Brady has put together a very comprehensive post on his blog today about using the Zend_Feed component of the Zend Framework to help with the aggregation of content from other sites (like RSS and Atom feeds).

In this entry I explore Zend_Feed from the perspective of someone aggregating RSS and Atom feeds with a view to building a database of uniquely identified content for later presentation in a "Planet" style application. [...] In fact all we create here is a simple command line script to aggregate content frequently (e.g. just set up cron to run it every hour or so) into a database for later presentation.

He guides you through each step of the way:

  • Setting Up Database And Models
  • The Aggregator Script Foundation
  • Using Zend_Feed to get common data for RSS/Atom entries
  • Putting It All Together

There's plenty of code (and SQL to insert) in the post and he explains each point well, helping to make the development process smoother. There's even a summary section to toss in a few extra bits of information just in case you missed them along the way.

0 comments voice your opinion now!
zendfeed zendframework aggregate rss atom feed content


Community News:
PHPPodcasts.com Launched
September 24, 2007 @ 10:25:00

Cal Evans, of Zend Developer Zone (and PHP Abstract) fame has launched a new site to help PHPers with keeping all of their PHP podcasts in one place - PHPPodcasts.com - an archive site to give people searching for PHP podcasts a "one-stop shop".

phppodcasts.com is not a replacement for any of the existing feeds, it won't be on iTunes because it's not in competition with the owners podcasts. It's an archival site and a place for people to explore the different podcasts available for PHP developers before subscribing to them.

Currently, there's four podcasts under the PHPPodcast umbrella - Zend's own PHP Abstract, php|architect's Pro PHP podcast, the phpBB podcast and the CakePHP group's own podcast, The Show.

Know of a PHP-related podcast that you think should be added to the site? Let Cal know - Cal [at] this domain.

0 comments voice your opinion now!
phppodcasts podcast aggregate phpabstract prophppodcast cakephp phppodcasts podcast aggregate phpabstract prophppodcast cakephp


Community News:
Planet-Websecurity.org Launched
June 29, 2007 @ 08:49:00

As Chris Shiflett mentions today, there's a new web development security aggregation site that's been launched - Planet-Websecurity.org [feed]. Christian Matthies has headed up the project:

Those of you who have spoken to me recently may already be aware of this project, but for those who don't, I am pleased to announce the launch of Planet Websecurity, founded with the intention to bring together similarly themed news and rants related to Web security and to display them in one place.

Included in the list of blogs/sites aggregated are the blogs of: Chris Shiflett, Robert Hansen, Sid Karunaratne and Christian himself.

0 comments voice your opinion now!
planetwebsecurity aggregate security planet planetwebsecurity aggregate security planet


PHPBuilder.com:
Reading RSS feeds in PHP Part 1
December 13, 2006 @ 11:46:00

In a new tutorial over on PHPBuilder.com today, they demonstrate how to create and work with one of the most popular data exchange formats on the web today - RSS.

Recently I was looking for an RSS aggregator. I was having surprising difficulty finding one that did exactly what I wanted. [...] I began seriously considering writing my own. This month, I show you how to create a basic RSS reader yourself.

He gives a simple primer to what RSS is and what it looks like (explaining the XML spec) and includes an example of what a simple document looks like. He uses the older XML functionality in PHP (expat) to do the parsing and includes to code that he uses to get the job done.

0 comments voice your opinion now!
rss feed read aggregate expat xml parse tutorial part1 rss feed read aggregate expat xml parse tutorial part1



Community Events





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


podcast opinion testing framework release refactor configure introduction laravel unittest install community threedevsandamaybe series symfony2 language developer list interview code

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