PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 1201 to 1220 of 6889

Community News: Latest PEAR Releases for 07.09.2012

Community News: Latest PEAR Releases for 07.09.2012
Latest PEAR Releases: Config_Lite 0.1.4

A plea for less (XML) configuration files

A plea for less (XML) configuration files
I recently tried using Phing (a PHP build system) to do some simple release automation. Just creating a PEAR package and doing a few string replacements here and there. The result? After several wasted hours I ended up using Phing only for PEAR packaging and doing everything else in a custom PHP build script.The reason? Phing uses XML files to configure what it should do during a build. So an excerpt from a build file might look like this: name="SomeName" default="package" basedir=".." name="package"...

Jeff Carouth's Blog: Micro Framework and JavaScript Applications

Jeff Carouth's Blog: Micro Framework and JavaScript Applications
Jeff Carouth has posted some of his thoughts about the PHP micro-framework and Javascript combination (following a recent presentation on the subject).As I mentioned, I was accepted as a speaker at LoneStarPHP 2012 to give a session on MicroPHP Framework and JavaScript Applications. The session went reasonably well and I received some decent feedback both at the conference and on joind.in. I will address a couple issues with the talk to, hopefully, inspire you as I intended with this talk.He talks about...

Anthony Ferrara's Blog: The True Problem With PHP

Anthony Ferrara's Blog: The True Problem With PHP
In response to some of the "problem with PHP" posts that have been circulating lately, Anthony Ferrara has posted about the "true problem" with PHP - less about the language, more about the community.The core of the PHP community is filled with a lot of really talented and smart developers doing some really amazing things. But on the fringes, there are a lot of people who are writing articles, tutorials, and posts designed to help beginners learn the language (and usually how to program). The problem...

Matt Frost's Blog: Prevent Overcomplication

Matt Frost's Blog: Prevent Overcomplication
Matt Frost has a new post to his blog talking about reducing complexity and preventing overcomplication in your code and application structure.We've all come across code that's written so craftily that it takes us some time to figure out what's actually going on in that block of code. We've never written things like that ourselves of course....seriously though, if you're collaborating, not doing things in the simplest terms will create an issue when other people start to look at your code. There is...

Lee Davis' Blog: The enum conundrum

Lee Davis' Blog: The enum conundrum
In a new post to his blog Lee Davis describes the enum conundrum - what's the right solution for effectively using ENUM-type fields in your data?So a user signs up and I want to store a status that reflects their account, or at least an identifier representing that status. Their account could be active, disabled (temporarily), pending approval or maybe deleted. Should I use an enum? I've heard they're evil. Maybe having a reference table with statuses would be better? But now I have to manage a separate...

Too much abstraction: Doctrine and PHP

Too much abstraction: Doctrine and PHP
Personally - I feel like I'm really, really late to get on the Doctrine train. I've tried Doctrine 1 a few years back and found it mostly too complicated for my needs. For all I know, I still find PEAR::DB and PEAR::MDB2 the perfect database abstraction layers (DBAL). Though of course they may or may not be totally up to date in terms of PHP etc.. The overall concept of an ORM never stuck with me.Of course Doctrine has a DBAL too and it would be unfair to compare its ORM to another DBAL, but it seems...

Raymond Kolbe's Blog: DOMPDF in ZF2

Raymond Kolbe's Blog: DOMPDF in ZF2
Raymond Kolbe has a recent post to his blog about using the DOMPDF library to generate PDFs in a Zend Framework 2 application.If you're using Zend Framework 2 (beta 4) and need to easily generate PDFs, and you'd like to generate those PDFs from an HTML template, then boy do I have some good news for you! For those of you who have dealt with generating dynamic PDFs, you know how much of a pain in the ass it can be (e.g. dealing with x, y coordinates, word-wrap (or lack of), etc.). There are a few options...

The Bakery: 3.0: a peek into CakePHP's future

The Bakery: 3.0: a peek into CakePHP's future
The Bakery (the CakePHP site) has posted a list of things to come in the 3.0 release of the popular PHP framework.Since its creation, more than 7 years ago, CakePHP has grown with a life of its own. Its main goal has always been to empower developers with tools that are both easy to learn and use, leverage great libraries requiring low documentation and low dependencies too. We've had several big releases along these years and an ever growing community. Being one of the most popular frameworks out there...

The True Problem With PHP

The True Problem With PHP
There's been a lot of traffic lately about what's wrong with PHP, and counter posts about how good it is. I've even fallen into the fray in an earlier article trying to step up and defend the language. The problem with almost all of these posts is that they focus on the language itself and what's wrong (or right) with it. This is not one of those posts.Read more A

CodeIgniter.com: CodeIgniter Wiki Moved

CodeIgniter.com: CodeIgniter Wiki Moved
As is mentioned in this new post to the CodeIgniter project's main site, their wiki has made a move. You can now find it on github.In addition to having the convenience of existing as a git repo itself, moving this content to GitHub will help distinguish EllisLab and Reactor created content from community managed resources. It will also reduce the attraction of spammers to the CodeIgniter.com web site, as the wiki was a common location used by spammers and vandals to get content on our site that was less...

Site News: Popular Posts for the Week of 07.06.2012

Site News: Popular Posts for the Week of 07.06.2012
Popular posts from PHPDeveloper.org for the past week:James Fuller's Blog: Why can't someone just make a good IDE for PHP? Joshua Thijssen's Blog: Using vagrant and puppet to setup your symfony2 environment Jeff Atwood's Blog: The PHP Singularity Fabien Potencier's Blog: PHP is much better than you think Matthew Weier O'Phinney's Blog: On Visibility in OOP DZone.com: How to Build PHP 5.4 Applications with Visual Studio Reddit.com: What does the day-to-day look like for a LAMP developer? PHPBuilder.com:...

ZF2 Forms in Beta5

Forms are a nightmare for web development. They break the concept of separation of concerns: They have a display aspect (the actual HTML form) They have a validation aspect And the two mix, as you need to display validation error messages. On top of that, the submitted data is often directly related to your domain models, causing more issues: Not all elements will have a 1:1 mapping to the domain model -- buttons, CSRF protection, CAPTCHAs, etc. usually are application-level concerns, but not domain...

DeveloperDrive.com: 5 PHP Security Measures

DeveloperDrive.com: 5 PHP Security Measures
On the DeveloperDrive.com site today there's a new post with five easy steps you can take to help increase the security of your PHP-based applications.For many years, PHP has been a stable, inexpensive platform on which to operate web-based applications. Like most web-based platforms, PHP is vulnerable to external attacks. Developers, database architects and system administrators should take precautions before deploying PHP applications to a live server. Most of these techniques can be accomplished with...

MaltBlue.com: Why Zend Framework Plugins Save You Time

MaltBlue.com: Why Zend Framework Plugins Save You Time
On the MaltBlue.com blog today there's a new post talking about Zend Framework plugins and how they can help save you time in the long run, giving you more time and flexibility to create the applications you want.During the recent development of the new PHP cloud development casts site, which has been developed with the Zend Framework, so much development time has been saved by using one of the simplest and arguably best features of the framework: Controller Plugins. So today I want to introduce you to...

Mike Purcell's Blog: PHP - Reflection Class - Determine Parent Method Signature

Mike Purcell's Blog: PHP - Reflection Class - Determine Parent Method Signature
In this recent post to his blog Mike Purcell shares a method he found to discover the parameters required by a method in a class' parent via reflection.According to PHP docs regarding the Memcached::get() method, there are three arguments which which must be added to my extended signature, which I added, but kept getting "...should be compatible with that of Memcached::get()" errors. I tried looking for the method signature via source code but didn't glean anything useful from the PECL documentation, so...

James Morris' Blog: Deploy a Silex App Using Git Push

James Morris' Blog: Deploy a Silex App Using Git Push
James Morris has a new post to his blog showing you how you can deploy a Silex-based application via git and a post-receive hook on the server side.Up until a few days ago I used to use a small bash deployment script to deploy a few simple sites to my live box. The process was a git archive and extract, then an rsync to the live site. Only inspecting it recently I realised that rsync no longer sent just the changes but all of the files, I'd never noticed before as the sites were so small the deploy was...

Juan Treminio's Blog: Xdebug and You: Why You Should be Using a Real Debugger

Juan Treminio's Blog: Xdebug and You: Why You Should be Using a Real Debugger
If you've been working with PHP for any length of time, you know that one of the issues the language has shows up when you're trying to debug your applications. Thankfully, as Juan Treminio points out, there's a better way - Xdebug.Xdebug is a PHP extension that was written and is maintained by Derick Rethans. It provides debugging and profiling capabilities, although I'll be mostly focusing on the debugging aspects in this tutorial. With it you can set a breakpoint and pause the execution of a script to...

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:Martin Sikora's Blog: Google Chrome Extension: PHP Ninja Manual SWAT Blog: Python VS PHP Smashing Magazine: My Favorite Programming Mistakes Gonzalo Ayuso's Blog: New features in PHP5.4 alpha1 Casey's Blog: Make Your Life as a PHP Developer Twice as Easy With phpsh VideoPHPBlog.com: Create your own MVC Bradley Holt's Blog: Testing PHP 5.4 DevShed: Optimize File Downloading in PHP Ibuildings techPortal: DPC11: Day 2 Freek Lijten's Blog: Git...

PHPBuilder.com: Two PHP 5 Security Flaws Found

PHPBuilder.com: Two PHP 5 Security Flaws Found
As reported in this new post on PHPBuilder.com, there are two new security issues that could allow an attacker to execute their own code (note: these are fixed by the latest releases, PHP 5.4.4 and PHP 5.3.14).The flaws are related to each other, with the primary issue being an insecure implementation of the DES within the crypt() function. In his eSecurityPlanet article about recent PHP security updates, Sean Michael Kerner provides the details of these two security flaws.The issue stems from a flaw in...

Latest PHP Tweets