PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 1 to 20 of 144

MySQL, Memcache, PHP revised

MySQL, Memcache, PHP revised
Some time ago I was writing about the InnoDB Memcache Daemon plugin already for the MySQL server. Back then we had a labs release with a little preview only. Meanwhile quite some time passed and new developments were made - just in time for the MySQL 5.6 RC announced this weekend by Tomas. The innodb_memcache daemon plugin is a plugin for the MySQL Server end contains an embedded memcached. This embedded memcached is configured to use MySQL's InnoDB engine as storage backend. By using this data stored...

phorkie 0.3: Federated forking

phorkie 0.3: Federated forking
I've just released phorkie 0.3.1, which brings you OpenID login and federated paste forking. phorkie is a self-hosted pastebin application written in PHP. Its pastes are editable, may have multiple files and are stored in git repositories. OpenID login Thanks to the help of Justin J. Novack, you may login with your OpenID to get pastes assigned to you. Also, that way your avatar image will be visible in the paste history. PEAR's OpenID package is used behind the scenes,...

Reddit.com: PHP and Continuous Integration

Reddit.com: PHP and Continuous Integration
On Reddit.com there's a recent post answering a question asked about PHP and continuous integration during a project's development.Does anyone have experience with PHP and Continuous Integration? If so, what tools and / or platforms did you use?Suggestions in the comments include: Codeception for unit testing the Jenkins PHP template Atlassian Bamboo Jenkins Travis-CI (more for open source projects)

NetTuts.com: All About Mocking with PHPUnit

NetTuts.com: All About Mocking with PHPUnit
NetTuts.com has another post for those out there wanting to further their PHP unit testing knowledge. In this new tutorial, Csaba Patkos introduces you to mocking objects with PHP Unit - a powerful method to help test some of the more difficult things.There are two styles of testing: "black box" and "white box" styles. Black box testing focuses on the object's state; whereas, white box testing focuses on behavior. The two styles complement each other and can be combined to thoroughly test code. Mocking...

Josh Adell: Interfaces and Traits: A Powerful Combo

Josh Adell: Interfaces and Traits: A Powerful Combo
Josh Adell has a new post today looking at the "powerful combination" of using traits and interfaces in PHP applications. He shows how, despite traits not implementing the interface directly, they can be used to make other classes adhere to them simply by "using" them.If you're not using interfaces in PHP, you are missing out on a powerful object-oriented programming feature. An interface defines how to interact with a class. By defining an interface and then implementing it, you can guarantee a...

Site News: Popular Posts for the Week of 09.28.2012

Site News: Popular Posts for the Week of 09.28.2012
Popular posts from PHPDeveloper.org for the past week:Michael Maclean: Why one-line installers are a bad idea PHPMaster.com: Building Your Own URL Shortener Community News: Atlanta PHP October Meeting - Jacob Terry on Tracking in Applications Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12 Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites Igor Wiedler: Binary parsing with PHP Gonzalo Ayuso: The reason why singleton is a "problem" with PHPUnit Reddit.com:...

Silver Lining Blog: How to Enable XDebug in Windows Azure Web Sites

Silver Lining Blog: How to Enable XDebug in Windows Azure Web Sites
On the Silver Lining blog (a MSDN Windows Azure related site), there's a recent post showing how you can enable XDebug on your Azure instance to help with debugging your application.In this post, I'll cover how to run XDebug (including the profiler) in Windows Azure Web Sites. Enabling XDebug in Windows Azure Web Sites is as simple as enabling an extension. However, enabling an extension for the built-in PHP runtime is slightly different than doing so for a custom PHP runtime. I'll cover both scenarios...

NetTuts.com: Hands-On Unit Testing With PHPUnit (Screencast)

NetTuts.com: Hands-On Unit Testing With PHPUnit (Screencast)
On the NetTuts.com site today there's a new screencast posted (by Jeffrey Way) that gives you a hands-on look at using PHPUnit to write and execute tests on your code.In this screencast, we'll build a relatively simple class, using TDD techniques. Along the way, we'll discuss various PHPUnit methods, how to create mock objects, and more! I encourage you to work along; it's the best way to learn!If you're new to unit testing this is a good way to start. He uses the Laravel framework as a base for the...

Codeception Blog: The Locator Class

Codeception Blog: The Locator Class
The Codeception blog (a BDD testing tool) has a new post on using their Locator class to create more complex tests based on XPath or CSS selectors.In the latest Codeception 1.1.4 new Locator class was introduced. Basically it should simplify your life in writing complex XPath or CSS locators. Right now it has minimal, yet useful functionality.The post shows how to combine more than one item for location with either a tag, CSS-based or XPath-based selector. It also shows how to use the "tabindex" method...

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1
Gary Hokin has posted the first part of a series he's doing to introduce those Zend Framework v1 developers out there to the latest version of the framework, Zend Framework v2.Having worked with ZF1 for a lot of years, I've been watching the development of ZF2 with interest. I've tried nearly every version, from the heady days of the pre-Skeleton App, right through the betas and release candidates. With the imminent release of ZF2 proper, I thought I would share with you some of the most obvious...

Introduction to PHP 5.4.7 - Guelph PHP Meetup

Introduction to PHP 5.4.7 - Guelph PHP Meetup
My slides introducing PHP 5.4.7 from the talk at Guelph PHP user meetup are now available online and can be downloaded at: http://ilia.ws/files/nena_php54.pdf

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Project: Warden: A user database authorization package for FuelPHP PHPMaster.com: File Uploads with PHP Johannes Schl├╝ter's Blog: MySQL Query Analyzer and PHP PHPMaster.com: Preventing Cross-Site Request Forgeries Wojciech Sznapka's Blog: Loosening dependencies with closures in PHP Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP PHPMaster.com: Introducing Superglobals PHPClasses.org: Lately in PHP Episode 16 - APC in PHP, MODX CMS, Top...

Social media buttons the easy way

Social media buttons the easy way
It's great to have access to such a great repository of WordPress plugins, but sometimes a great plugin is just aotoo mucha for a smaller task of function. Like social media buttons, they have in fact a very simple function and most buttons require only a few rows of code. If a complex plugin doesn't [...]

Reddit.com: Avoid static methods at all costs? (testability)

Reddit.com: Avoid static methods at all costs? (testability)
On Reddit.com there's a recent post questioning the (recently) common saying that PHP developers should avoid static methods when concerned about testability:I get it: testing is important, and building your codebase in a manner that is easy to test should be a priority. However, sometimes I feel like I have to compromise on the elegance of my code in order to maintain testability. Cases where perhaps a static method makes sense, but end up having to perform some coding acrobatics in order to avoid it....


Thomas Hunter: CouchDB and PHP Web Development (Book Review)

Thomas Hunter: CouchDB and PHP Web Development (Book Review)
Thomas Hunter has posted a (nice long) book review of the Packt Publishing book "CouchDB and PHP Web Development" to his site.When I first picked up this book, I was expecting a boring, text-book approach to code examples for PHP talking with CouchDB. Boy was I wrong. What I found was a book that has you build a complete working application. And by complete, I mean you'll add the Twitter Bootstrap framework and it will be sexy.He mentions parts of the app you'll create - a PHP framework, 3rd party...

Ars Technica: Questions abound as malicious phpMyAdmin backdoor found on SourceForge site

Ars Technica: Questions abound as malicious phpMyAdmin backdoor found on SourceForge site
As Ars Technica reports, there was a recent exploit found on the SourceForce website's installation of phpMyAdmin that allowed an attacker to POST anything to the site to be executed.Developers of phpMyAdmin warned users they may be running a malicious version of the open-source software package after discovering backdoor code was snuck into a package being distributed over the widely used SourceForge repository. The backdoor contains code that allows remote attackers to take control of the underlying...

Ulf Wendel: Not only SQL injection: I don't trust you!

Ulf Wendel: Not only SQL injection: I don't trust you!
On his site today Ulf Wendel talks about SQL injection and some comments that came up during a recent webinar about common MySQL mistakes PHP developers make.Never trust user input! Injection is a threat . You are the new web developer, aren't you?. Never trust user input is the first rule I had to learn as a web developer in anchient times. Injection can happen whenever user input is interpreted or used to compose new data. A quick recap of the #3 mistake from todays Top 10 MySQL Tips and Mistakes for...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
FTP Crawler MCache PHP Array Search Bing Search PHP OAuth API

Igor Wiedler: Binary parsing with PHP

Igor Wiedler: Binary parsing with PHP
Igor Wiedler has a new post to his blog showing how to work with binary data in your PHP applications a few different built-in functions including unpack and bindec.Binary operations in PHP are a bit strange. Since PHP was originally a templating layer for C code, it still has many of those C-isms. Lots of the function names map directly to C-level APIs, even if they work a bit differently sometimes. For example, PHP's strlen maps directly to STRLEN(3), and there are countless examples of this. However,...