I've published some vanilla PHP 5.4.0 RPMs to make new feature testing
Along with all the PHP 5.4 goodies, the php-fpm "FastCGI Process
Manager" is available for the first time on oss.oracle.com. Php-fpm
is an alternative FastCGI interface to PHP with various extra features
such as load dependent spawning of processes. (For other features,
see php-fpm.org). Php-fpm
has been getting more and more traction in the PHP community and the
EXPERIMENTAL flag was removed in PHP 5.4. You might want to...
I've published some vanilla PHP 5.4.0 RPMs to make new feature
testing easier for Oracle Linux 5.x 64 bit users. The standard set of
RPMs is at oss.oracle.com/projects/php. The OCI8 extension is also
available (this requires the free Oracle Instant Client 11.2 from ULN or OTN.)
Some of the features of PHP 5.4 are:
Improved memory usage and performance. Some impressive
preliminary reports of the benefits include:
On PHPMaster.com today there's a new tutorial posted (from Martin Psinas) about using role-based access controls in PHP-based applications. His method isn't based in any specific framework, so it's easily portable to just about any app out there.In this article I will discuss my personal favorite approach: role based access control (RBAC). RBAC is a model in which roles are created for various job functions, and permissions to perform certain operations are then tied to roles. A user can be assigned one...
PĂˇdraic Brady has written up an exhaustive guide to using htmlspecialchars correctly and securely in your applications (though it's technically how "not to use it"). This is part one of a series looking at preventing cross-site scripting in PHP applications.While it's no harm poking fun at ourselves, in PHP we do have a serious problem. Cross-Site Scripting (XSS) remains one of the most significant classes of security problems afflicting PHP applications. Despite years of education, community awareness...
Brian Swan (of Microsoft) has a new post to his blog talking about what SQL Server 2012 means for PHP developers - what the latest version of this MS database has to offer and how to get a basic install up and working in your environment.Last week, Microsoft held a virtual conference to announce the availability of SQL Server 2012. The conference included a number of events (speakers, videos, training activities, etc.) that focused on the new functionality available in this release. Now that most of the...
In this new post Gonzalo Ayuso talks about "using eval without using eval" in PHP applications - executing PHP code without having to use the eval function to do it.Yes I know. Eval() is evil. If our answer is to use eval() function, we are probably asking the wrong question. When we see an eval() function all our coding smell's red lights start flashing inside our mind. Definitely it's a bad practice. But last week I was thinking about it. How can I eval raw PHP code without using the eval function, and...
Anthony Ferrara has started a new series of posts to his blog that will introduce you to the source behind the project - the code that makes PHP tick. In this first part of the series, he gives more of an overview of things like where you can find the source and some basic C concepts.In this post, we'll walk through the basics of the PHP application: where to find it, the general structure of the codebase and a few really fundamental concepts about the C language. To be clear, the goal of the series is...
On 7php.com today they've posted their latest interview with a well-known PHP community member - Lorna Mitchell:In this edition I talked with Lorna Jane Mitchell, the Project Lead of Joind.in - built with PHP and proud to be Open-Source. She is the first female PHP programmer I'm interviewing on 7php.com and this makes it a special one. Lorna is a highly respected and highly looked-upon PHPer in the PHP Community with all her active contributions, writing so many insightful PHP articles, co-author of the...
MySQL 5.6 Global Transaction Identifier - Use case: Failover
View more presentations on PHP and MySQL
The long lasting MySQL replication failover issue is cured. MySQL 5.6 makes master failover easy, PECL/mysqlnd_ms assists with the client/connection failover. Compared to the past this is a significant step ...
Latest PECL Releases:
On Monday 19th March I'll be speaking at PHP Leeds. The topic is all things git and github; as an open source project lead I see lots of very capable programmers taking their first steps with github. In this session we'll talk about how you can use these tools to contribute to open source (or your own projects, of course), covering both "what to click in the web interface" and "what to type at the command line" for git and github respectively. Come along if you want to know more about git, open source,...
(Photo credit: bertboerland)
In recent weeks, I consulted with the second most intelligent species on the planet: Dolphins. Dolphins are renowned across the known Universe for their awesome programming skills. After all, it was they who developed such insightful works as a€oEvolution By Examplea€ť, a€oDude! We Wrote The Laws Of Physics!a€ť, and a€oHow Many Humans Does It Take To Screw Up A Planet?a€ť. The answer to the last will be published on 01/01/2013 after the experiment is shut down and sent to a...
Freek Lijten has a new post to his blog - a review of a book (from Freeman & Price) called "Growing Object-Oriented Software Guided by Tests". It's based on Java, but the ideas presented can be applied pretty universally.It may seem strange but I'd like to start out with giving my opinion on this book: It is brilliant! If you don't like reading my post you at least know what you should do next: buy the friggin' book. The book offers some theory concerning agile development, (unit-)testing and code...
On PHPMaster.com today there's a new tutorial showing how to do some form validation using some basic PHP (no external libraries or tools here). This is a beginner level tutorial to help you get familiar with the concepts behind doing validation (andIn this article you'll construct and validate a simple form using HTML and PHP. The form is created using HTML and validation and processing of the form's contents is done with PHP. The goal is to teach you some basic HTML form elements and how their data is...
In this new post Ralph Schindler takes a look at the Prototype design pattern and uses it to illustrate some best practices in using constructors in PHP.If your knowledge of constructors ends with "the place where I put my object initialization code," read on. While this is mostly what a constructor is, the way a developer crafts their class constructor greatly impacts the initial API of a particular class/object; which ultimately affects usability and extensibility. After all, the constructor is the...
Following on the heels of the beta 3 release of the Zend Framework 2, Rob Allen has been posting more about its features and what's changed from the version 1 world. In this new post he looks at some examples of how to use the newly refactored ZendView component.With the release of Beta 3 of Zend Framework, we now have a significantly refactored the ZendView component. One of the changes made is that there is a ViewModel object that is returned from a controller which contains the variables to be used...
As a PHP developer, I find myself referencing PHP's source code more and more in my normal everyday work. A It's been very useful in everything from understanding what's happening behind the scenes to figuring out weird edge-cases to see why something that should be working isn't. A And it's also very useful in the cases when the documentation is either missing, incomplete or wrong. A So, I've decided to share what I've learned in a series of posts designed to give PHP developers enough knowledge to...
As a part of moving on to a new job and a shift in perspectives, Chris Hartjes has decided to write up a manifesto about testing, a big focus in his development life:With the new position comes more of the stuff I am really passionate about: testing and automation. Which also got me to thinking about the reasons why I am so passionate about these things. I thought I would create my own little testing mini-manifesto here. The ideas my podcasting partner did with his MicroPHP Manifesto made me realize that...
In his most recent blog post Michael Nitschinger introduces you to Couchbase, a document-oriented database, and how to use it with PHP.As there were a lot of merges, renamings and releases, it was pretty hard to follow up with the current/best database version and SDK to use for your project. Now as the dust has settled a bit, here's what I've come up with: Couchbase 2.0 will be the next major version and is already pretty stable, so I'll jump straight onto it and skip 1.8.He recommends using the...
Latest PEAR Releases:
Latest PHP Tweets