PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 321 to 340 of 6889

How (and when) to move users to mysqli and PDO_MYSQL?

How (and when) to move users to mysqli and PDO_MYSQL?
An important discussion on the PHP "internals" development mailing list is taking place. It's one that you should take some note of. It concerns the next step in transitioning PHP applications away from the very old mysql extension and towards adopting the much better mysqli extension or PDO_MYSQL driver for PDO. This would allow the mysql extension to, at some as-yet undetermined time in the future, be removed. Both mysqli and PDO_MYSQL have been around for many years, and have various advantages:...

Community News: Packagist Latest Releases for 11.25.2012

Community News: Packagist Latest Releases for 11.25.2012
Recent releases from the Packagist:tedivm/stash-bundle (v0.1.2, v0.1.1) desarrolla2/cache (v1.1.0-rc.2) funddy/jstranslations-bundle (v1.0.0) phly/phly-paste (1.0.0) inori/banklink (v0.1.5, v0.1.4) morrisonlevi/spl (0.4.1) clio/clio (0.1.2, 0.1.1) manymules/mediaelementjs-bundle (2.10.0) invoker/invoker (v0.1.1) jity/tag-generator (v0.2.1) twilio/sdk (3.8.1)

PHPUnit Tests for WordPress Plugins: auto-increment ID records

PHPUnit Tests for WordPress Plugins: auto-increment ID records
This fourth posting in my WordPress plugin / PHPUnit testing series explains how I verify information inserted into database records with auto-increment IDs in my Object Oriented Plugin Template Solution. In order for this post to be a be a self-sustaining entity, I need to re-explain two terms from the earlier posts. First is "parent class." It holds helper properties and methods for use by multiple test classes. abstract class TestCase extends PHPUnit_Framework_TestCase {} The second term is "test...

Liip is where I want to be!

Liip is where I want to be!
This summer I took 2 months off to figure out what I want to do in the coming years. After over 5 years in Switzerland it seemed prudent to take a step back from the daily routine to ponder things. I wrote a lengthy blog post about the options I was considering a while back and as I never really gave an update on the results I just wanted to point out that I decided to stay with Liip. I wrote up a long blog post about what I did during those 2 months over on the Liip blog. Just wanted to post this since...

Community News: Packagist Latest Releases for 11.24.2012

Community News: Packagist Latest Releases for 11.24.2012
Recent releases from the Packagist:mishak/web-resource-management (0.1.0) morrisonlevi/spl (0.4.0) blainesch/li3_unit (v1.0.0) mjohnson/forum (3.2.0) mjohnson/uploader (3.7.4) mf2/mf2 (v0.1.8) hatenasyntax/hatenasyntax (v1.0.7) phppeg/phppeg (v1.0.1) funddy/worker (v1.0.1) martinbean/dribbble-php (2.2.0)

PHPMaster.com: Debugging and Profiling PHP with Xdebug

PHPMaster.com: Debugging and Profiling PHP with Xdebug
On PHPMaster.com today there's a new tutorial showing you how to effectively debug your applications with Xdebug, a handy tool that provides more detail around your errors just by installing it.Xdebug is a free and open source project by Derick Rethans and is probably one of the most useful PHP extensions. It provides more than just basic debugging support, but also stack traces, profiling, code coverage, and so on. In this article you'll see how to install and configure Xdebug, how to debug your PHP...

Josh Adell: Migrating to Dependency Injection

Josh Adell: Migrating to Dependency Injection
In a new post to his blog Josh Adell talks about his voyage to implement dependency injection into a current application. His work can be found in this github repository.Recently, I gave a lunch-and-learn to my team on the topic of Dependency Injection (DI). Instead of showing a bunch of slides explaining what DI is and what it's good for, I created a small project and demonstrated the process of migrating a codebase that does not use DI to one that does. Each stage of the project is a different tag in...

thePHP.cc: Do No Enter!

thePHP.cc: Do No Enter!
In a new post to the PHP.cc site today Arne Blankerts reminds us that not all security is about writing good code and handing data correctly - it's also about the systems they run on.What seems to be so obvious for road traffic and its rules seems to be less obvious for many web developers. They tend to slack on defining (and monitoring) what is happening at the application level as well as the infrastructure level of their application. It is not enough to run a default install of your operating system...

PHP.net: PHP 5.4.9 and PHP 5.3.19 released!

PHP.net: PHP 5.4.9 and PHP 5.3.19 released!
On PHP.net site today, they've announced the latest releases in the PHP 5.3.x and 5.4.x series - PHP 5.3.19 and PHP 5.4.9:The PHP development team announces the immediate availability of PHP 5.4.9 and PHP 5.3.19. These releases fix over 15 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.9, or at least 5.3.19. For source downloads of PHP 5.4.9 and PHP 5.3.19 please visit our downloads page, Windows binaries can be found on windows.php.net/download/.You can view a complete list of changes in...

Community News: Packagist Latest Releases for 11.23.2012

Community News: Packagist Latest Releases for 11.23.2012
Recent releases from the Packagist:willdurand/propel-statemachine-behavior (0.0.6) netglue/ng-contact (0.1) nikic/php-parser (v0.9.3) alexbilbie/mongoqb (1.2.1, 1.2) probesys/admin-bundle (v0.12) zenstruck/migrations-bundle (v2.0.0) alphalemon/alphalemon-cms-bundle (v1.0.0-RC5) khepin/yaml-fixtures-bundle (v0.7.1)

Site News: Popular Posts for the Week of 11.23.2012

Site News: Popular Posts for the Week of 11.23.2012
Popular posts from PHPDeveloper.org for the past week:PHPMaster.com: Exceptional Exceptions Alex Bilbie: Introducing MongoQB Neal Anders: Insight into getting conference proposals accepted.. Community News: Packagist Latest Releases for 11.17.2012 Community News: Packagist Latest Releases for 11.16.2012 Community News: Packagist Latest Releases for 11.18.2012 Site News: Popular Posts for the Week of 11.16.2012 Slava Vishnyakov: PHP the Nice Way (Ever-evolving Huge Retailer Website Story) Anthony Ferrara:...

Hello world!

Hello world!
Welcome to WordPress.com! This is your very first post. Click the Edit link to modify or delete it, or start a new post. If you like, use this post to tell readers why you started this blog and what you plan to do with it. Happy blogging!

NetTuts.com: Mockery: A Better Way

NetTuts.com: Mockery: A Better Way
On NetTuts.com there's a new tutorial posted showing you how to use Mockery in your unit testing as an alternative to the built-in mocking tools of something like PHPUnit.Mockery is a PHP extension that offers a superior mocking experience, particularly when compared to PHPUnit. While PHPUnit's mocking framework is powerful, Mockery offers a more natural language with a Hamcrest-like set of matchers. In this article, I'll compare the two mocking frameworks and highlight the best features of Mockery.He...

Supercharging PHP MySQL applications using the best API

Supercharging PHP MySQL applications using the best API
PHP MySQL developers are confronted with three PHP MySQL APIs. That is confusing. Since mid 2012 the PHP manual suggests not to use the oldest and original PHP MySQL extension any more to cure the situation. Please, swap out ext/mysql in favour of either ext/mysqli or PDO_MySQL. Why to upgrade is below. Read on, if you are a PHP beginner, your PHP application is still using mysql_* functions of ext/mysql or you are a PHP trainer. As a PHP consumer, tease your software vendors by asking whether they use...

PHPMaster.com: The Single Responsibility Principle

PHPMaster.com: The Single Responsibility Principle
On PHPMaster.com today Alejandro Gervasio has a new tutorial posted about the Single Responsibility Principle - a guideline that states that each class should only have one "area of concern" and not try to do to much.One of the most notorious consequences of this rational associative process is that, at some point, we effectively end up creating classes that do too much. The so-called "God class" is quite possibly the most extreme and coarse example of a structure that packages literally piles of...

PHP 5.4.9 and PHP 5.3.19 released!

PHP 5.4.9 and PHP 5.3.19 released!
The PHP development team announces the immediate availability of PHP 5.4.9 and PHP 5.3.19. These releases fix over 15 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.9, or at least 5.3.19. For source downloads of PHP 5.4.9 and PHP 5.3.19 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes are recorded in the ChangeLog.

Ben Ramsey: The Era of PHP Testing

Ben Ramsey: The Era of PHP Testing
Ben Ramsey has a new post to his site where he reviews the "eras" of PHP that it's gone through in the past few years and ends up with what he calls the "Era of Testing" - the recent strong push that's being made to promote and encourage unit testing in PHP applications.Over the past decade, the PHP community has progressed through a handful of distinct eras that have each been marked by a focus on specific best practices. This is most evident in the types of talks presented at conferences and user...

Anthony Ferrara: Programming With Anthony - Paradigm Soup

Anthony Ferrara: Programming With Anthony - Paradigm Soup
Anthony Ferrara has posted about his first video in a series he's creating about programming and related topics. In this first one he talks about "Paradigm Soup". So, for the past few days I've been talking about a secret project that I've been working on. Well, today I'm pleased to announce the project. I've been working on starting a series of YouTube videos about programming. The first of these videos is about Paradigms (Procedural, OOP, Functional). Plenty of future ones are planned, but the topics,...

Community News: Packagist Latest Releases for 11.22.2012

Community News: Packagist Latest Releases for 11.22.2012
Recent releases from the Packagist:phery/phery (2.2.1) cboden/Ratchet (v0.2.3) icomefromthenet/reverse-regex (v0.0.4) sp/bower-bundle (v0.2) bcen/splext (0.0.2, 0.0.1) remq/remq (v0.0.2, v0.0.1) sgrodzicki/pingdom (1.1.1) sgrodzicki/pagespeed (1.0.1) basecom/cronjob-bundle (v1.1) aygon/jatun (1.0.0RC2) CodePlex/PHPExcel (1.7.8) manymules/marionettejs-bundle (1.0.0-beta6) manymules/lodash-bundle (0.10.0) manymules/jquery-bundle (1.8.3)

Latest PHP Tweets