PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 181 to 200 of 251

"ls -R | grep ao:$a | sed -e as/:$//' -e..."

"ls -R | grep ao:$a | sed -e as/:$//' -e..."
aols -R | grep ao:$a | sed -e as/:$//' -e as/[^-][^\/]*\//-/g' -e as/^/ /' -e as/-/|/'a - ls + grep + sed =Atree Stick it in tree.sh, then alias tree='sh tree.sh', and ta-da! You can now see your directories as a graphical tree on any system!

ZendCon 2010 Podcast - A New Approach To Object Persistence In PHP

ZendCon 2010 Podcast - A New Approach To Object Persistence In PHP
The object-relational impedance mismatch makes persisting PHP objects in a relational database a daunting task. How about these new schemaless NoSQL databases? We will have a look at the problems involved with persisting PHP objects, and introduce design patterns that help solving these problems. Putting the patterns to good use, we will build a working PHP object persistence solution for MongoDB.

Nay Pryce's Blog: "Dependency Injection" Considered Harmful

Nay Pryce's Blog: "Dependency Injection" Considered Harmful
While it's not PHP specific, this recent article from Nat Pryce talks about dependency injection and how the pattern could be considered harmful in the wrong (framework's) hands.There are two aspects to Dependency Injection. Firstly, an object's interface should define the services that the object requires as well as those it provides. Secondly, the code that satisfies the requirements of an object by giving it a reference to the services of is collaborators is external to both the object and its...

Gonzalo Ayuso's Blog: Using PHP classes to store configuration data

Gonzalo Ayuso's Blog: Using PHP classes to store configuration data
Gonzalo Ayuso has a new post to his blog today looking at how he uses PHP classes to store configuration information for easier retrieval.In my last projects I'm using something I think is useful and it's not a common practice in our PHP projects. That's is the usage of a plain PHP's class for the application's configuration. Let me explain it. Normally we use ini file for configuration. [...] There are many standard options. Why I prefer a different one then? I like plain PHP classes because the IDE...

Zend Developer Zone: Last chance to join the PHPBenelux Conference 2011

Zend Developer Zone: Last chance to join the PHPBenelux Conference 2011
On the Zend Developer Zone there's a reminder about PHPBelenux - the conference is coming soon, so be sure to get your tickets now!The second annual PHPBenelux Conference is taking place on January 28 and 29 at the same location as last year: Hotel Ter Elst in Edegem (Antwerp, Belgium). We were able to secure an awesome schedule with three tracks, 1.5 days of conference and a tutorial morning. The schedule has been announced for most part of it and also the ticket sales are well underway.They've included...

Christopher Bledsoe's Blog: PHP Dependency Injection (Inversion of Control)

Christopher Bledsoe's Blog: PHP Dependency Injection (Inversion of Control)
On his ClickMagnate site Christopher Bledsoe has an interesting post looking at dependency injection (or, as he calls it "inversion of control") in PHP applications..NET and Java have some great IoC (Inversion of Control) containers but PHP hasn't gotten the same kind of dependency love (I know there are a few people who have tried to tackle this problem but I wanted something that worked with Zend Framework - my framework of choice). I also wanted the dependencies to be defined via the application.ini...

ServerGrove Blog: How to install bbPress on shared hosting

ServerGrove Blog: How to install bbPress on shared hosting
On the ServerGrove blog today there's a new tutorial posted showing you, step by step, how to install the bbPress software (from the folks that brought you WordPress.bbPress is a forum software developed by the same folks who created WordPress. It's a lightweight bulletin board system that seems to be gaining traction lately. bbPress runs really well on our shared hosting plans so we decided to put together a quick tutorial on how to install bbpress on our systems.Despite the description, the guide can...

Community News: Latest PEAR Releases for 01.10.2011

Community News: Latest PEAR Releases for 01.10.2011
Latest PEAR Releases: Services_oEmbed 0.2.0

Testing Symfony2

Testing Symfony2
Back when I was developing MDB2, I loved my unit tests to help me ensure that changes actually worked across different RDBMS (versions). It was also a great way to identify issues by having users run the test suite. Actually I guess I wasn't really "unit testing" since I was actually always running against a real database. Fast forward until today. In my current project we are aiming for 100% code coverage. Well we are not afraid of using @codeCoverageIgnore for super trivial stuff and yes I know that...

Site News: Job Postings for the week of 01.02.2011

Site News: Job Postings for the week of 01.02.2011
Job postings for the past week:Job Posting: Company52 Seeks Web Developer (Telecommute) Job Posting: Moontoast Seeks PHP/Symfony Engineer, Contract (Nashville, TN) Job Posting: Moontoast Seeks Senior PHP Engineer (Nashville, TN)

Aspects, Filters, and Signals, Oh, My!

Last month, during PHP Advent, gwoo wrote an interesting post on Aspect-Oriented Design, or Aspect Oriented Programming (AOP) as it is more commonly known. The article got me to thinking, and revisiting what I know about AOP, Intercepting Filters, and Signal Slots -- in particular, what use cases I see for them, what the state of current PHP offerings are, and where the future may lie. But first, some background is probably in order, as this is a jargon-heavy post. Continue reading "Aspects,...

Ibuildings techPortal: Video Interview: Kevlin Henney

Ibuildings techPortal: Video Interview: Kevlin Henney
On the Ibuildings techPortal today there's a video interview with a keynote speaker from last year's Dutch PHP Conference - Kevlin Henney.To kick off 2011 here's an interview with our inspirational keynote speaker Kevlin Henney - talking about development and how we can keep bettering ourselves!If the in-page player doesn't work, you can go directly over to the Vimeo site and watch it there. You can see other video interviews and podcasts from the Dutch PHP Conference 2010 in the dcpradio tag on the...

DZone.com: Java PHP Python -- Which is "Faster In General"?

DZone.com: Java PHP Python -- Which is "Faster In General"?
On the Java DZone.com section today there's a "which is faster" post comparing PHP, Java and Python. No, it's not quite what you're expecting - I'd suggest reading on.Sigh. What a difficult question. There are numerous incarnations on StackOverflow. All nearly unanswerable. The worst part is questions where they add the "in general" qualifier. Which is "faster in general" is essentially impossible to answer. And yet, the question persists. There are three rules for figuring out which is faster. And there...

Kevin Schroeder's Blog: Pre-caching FTW

Kevin Schroeder's Blog: Pre-caching FTW
In this new post to his blog Kevin Schroeder suggests that there's something even better than doing the typical caching inline (request, write to cache) - pre-caching.I just had an epiphany. I've talked about pre-caching content before and the benefits thereof before. But this is the first time I realized not only that there are benefits, but that doing it is BETTER than caching inline. Let me sum up... no, there is to much. Let me explain.He gives an example of how a typical application might cache -...

SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 3

SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 3
The SitePoint PHP blog has part three of their "create your own Twitter widget" series posted today. This is the last post of the series and involves a little cleanup on the data pulled from the Twitter API.In part 1 of this series, we examined the Twitter API, created a PHP TwitterStatus class, and imported the latest tweets in JSON format. In Part 2, we parsed the Twitter data, replaced links, and generated the complete HTML for our widget. In this last post, we'll cache our widget and translate tweet...

Last chance to join the PHPBenelux Conference 2011

Last chance to join the PHPBenelux Conference 2011
The second annual PHPB enelux Conference is taking place on January 28 and 29 at the same location as last year: Hotel Ter Elst in Edegem (Antwerp, Belgium). We were able to secure an awesome schedule with three tracks, 1.5 days of conference and a tutorial morning. We hope to see you again in Antwerp!

Matthew Weier O'Phinney's Blog: Making Zend Server Available Via SSL Only

Matthew Weier O'Phinney's Blog: Making Zend Server Available Via SSL Only
Matthew Weier O'Phinney has a new post to his blog today about making your Zend Server instance a bit more secure by taking the admin GUI and forcing it to be HTTPS-only (instead of the default HTTP & HTTPS).In light of the recent remote PHP exploit, I decided to update a couple servers I manage to ensure they weren't vulnerable. In each case, I had been using hand-compiled PHP builds, but decided that I'm simply too busy lately to be trying to maintain updates -- so I decided to install Zend Server....

Ibuildings Blog: PHP in 2010 - a year in retrospective

Ibuildings Blog: PHP in 2010 - a year in retrospective
On the Ibuildings blog today Barney Hanlon takes a look at 2010 and some of the major happenings in the world of PHP.Every year, for the past three years, Ibuildings has written a retrospective of the past twelve months in PHP. Looking back at last year's post, it amazes me how quickly what we were talking about is now passe. Was it only 2009 that Twitter became mainstream? Though not a heavy contributor to the 140-character medium, I find it one of the best ways to keep track of what's going on in the...

PHP.net: PHP 5.3.5 and 5.2.17 Released!

PHP.net: PHP 5.3.5 and 5.2.17 Released!
On the main PHP site there's a new announcement about a critical update in a new version to both the PHP 5.2.x and 5.3.x series of releases to correct a problem that could cause a hang or crash from user input - 5.3.5 and 5.2.17.The PHP development team would like to announce the immediate availability of PHP 5.3.5 and 5.2.17. This release resolves a critical issue, reported as PHP bug #53632 and CVE-2010-4645, where conversions from string to double might cause the PHP interpreter to hang on systems...

Site News: Popular Posts for the Week of 01.07.2011

Site News: Popular Posts for the Week of 01.07.2011
Popular posts from PHPDeveloper.org for the past week:SaniSoft Blog: Introduction to creating desktop applications with PHP and Titanium Job Posting: Moontoast Seeks Senior PHP Engineer (Nashville, TN) Chris Hartjes' Blog: Twitter Asks: Continuous Integration Landscape for PHP Developers Gonzalo Ayuso's Blog: My VIM configuration for PHP development Chris Roane's Blog: PHP Programming With Leadership PHPBuilder.com: Profiling PHP Code with Xdebug and KCacheGrind NetTuts.com: Quick Tip: Email Error Logs...