PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 121 to 140 of 214

Diversifying This Blog

Diversifying This Blog
When I began writing this blog back in August of 2008, I stated that I wanted to write about the things that I cared about. At the time that list included a slice of technology, largely focused on the LAMP stack. As I've changed over the years, I've also increased the things that I care [...]

StackOverflow.com: The Definitive Guide To Forms based Website Authentication

StackOverflow.com: The Definitive Guide To Forms based Website Authentication
If you haven't seen it yet, there's a post over on StackOverflow that's been growing over the past few days about form-based authentication in websites. The author wants to make a definitive resource for people to use when making good, secure user authentication systems.Please help us create the definitive resource for this topic. We believe that stackoverflow should not just be a resource for very specific technical questions, but also for general guidelines on how to solve variations on common...

Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...

Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...
On the Ldeveloper Tech Blog today there's a helpful new post about an error PHP's SOAP extension could throw about not being able to connect to the host despite all settings being correct.I receive this nasty error yesterday and it took me some time to figure out the problem: "Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in...". This ["new SoapClient"] line passes without any problems and this [var_dump on __getFunctions] shows the function prototypes correctly.His script...

Rafael Dohms' Blog: Filtering objects using annotations

Rafael Dohms' Blog: Filtering objects using annotations
Rafael Dohms has an interesting new post to his site today looking at a library he's developed (inspired by the Symfony Validation library) to help filtering values with rules defined in annotations.PHP does not have native Annotations support, however many projects have been using doc blocks to add value and semantics to code, like PHPUnit, Doctrine and Symfony. The Doctrine did a really good job in making available a Annotation parser kit, which allows you to bring the power of annotations into you own...

DZone.com: Hardening PHP: SQL injection - Complete walkthrough

DZone.com: Hardening PHP: SQL injection - Complete walkthrough
On DZone.com today there's a new post from Krzysztof Kotowicz sharing a presentation of his about protecting your application from SQL injection.The materials teach how to use prepared statements, how to escape and write secure stored procedures. Many PHP projects are covered - PDO, Propel, Doctrine, Zend Framework and MDB2. Multiple gotchas and caveats are included. I discuss why escaping is usually the wrong choice, which practices to avoid or follow and how stored procedures sometimes offer no...

SabreDAV 1.5 released with CardDAV support

SabreDAV 1.5 released with CardDAV support
Over the last month I've been working hard at the Atmail office in sunny Australia to get CardDAV support built into SabreDAV; and I've finally completed all the steps to do this release.So there it is, CardDAV. Unfortunately there are not yet a lot of clients who actually use it, and it mainly comes down to iOS and OS/X, but I've been asked about CardDAV a lot and suspect more people will become interested in this protocol (especially if more vendors start supporting it).So that's pretty much it; head...

David Stockton's Blog: Changing ErrorController to work with AJAX

David Stockton's Blog: Changing ErrorController to work with AJAX
David Stockton has a new tutorial posted to his blog - a technique he's found useful in his Zend Framework application to make the ErrorController work with Ajax calls to reduce the message you get back to just a JSON response.If you've ever built a Zend Framework MVC app which makes AJAX calls, you may have noticed that if an error occurs, you'll get a chunk of JSON followed by the HTML for the error page. If you've built a layout, you'll get all of that back to. This is fine if your users hit the page...

Site News: Popular Posts for the Week of 08.12.2011

Site News: Popular Posts for the Week of 08.12.2011
Popular posts from PHPDeveloper.org for the past week:Mayflower Blog: Traits in PHP 5.4 DZone.com: Assetic: JavaScript and CSS files management Community News: PHP 5.4 alpha3 Released for Testing Dave Marshall's Blog: Traits in PHP 5.4 - HelloWorld with Logging Trait Stas Malyshev's Blog: Shortcuts PHPBuilder.com: Back to Basics: Managing PHP Configuration php.ini Directives Gonzalo Ayuso's Blog: Runtime Classes. A experiment with PHP and Object Oriented Programming Wojciech Sznapka's Blog: Symfony2...

Pim Elshoff's Blog: SOLID design

Pim Elshoff's Blog: SOLID design
In your development time, you might have heard of the SOLID development design principles that aim to keep you and your application well structured and on track. If you haven't had the time to learn much about them, you should consider this new post from Pim Elshoff that briefly covers each principle (with some code examples along the way).Oh how we love acronyms. We've discussed a lot about writing a class, but we haven't talked about writing classes yet. How do you know if your solution is right? It is...

Marcus Bointon's Blog: PHP Base-62 Encoding

Marcus Bointon's Blog: PHP Base-62 Encoding
In a recent post Marcus Bointon looks at a hashing method that's not one as commonly used by developers as the usual base64 - base-62 encoding that plays a bit nicer with things like URLs and emails due to the character set it allows.There's a really horrible bug (though they won't call it that!) in Apache's mod_rewrite that means that urlencoded inputs in rewrites get unescaped in their transformation to output patterns. The bug actually remains unfixed, though a workaround first appeared in Apache...

ConFoo 2012

ConFoo 2012
We just launched ConFoo 2012 edition and are presently calling for papers. We are looking for the best speakers willing to share their skills and experience with developers and managers. ConFoo is a community driven conference dedicated to Web technologies. The conference will be held in Montreal from February 29th to March 2nd, 2012 at the prestigious Hotel Hilton Bonaventure. We will also have two days of private training. The topics will be revealed later this year. Talk proposals must received...

Ryan Gantt's Blog: Anonymous recursion in PHP

Ryan Gantt's Blog: Anonymous recursion in PHP
In a recent post to his blog Ryan Gantt looks at an interesting way to get around a limitation in PHP dealing with anonymous recursion and closures that throws a Fatal error when called.Turns out that variables called as functions must be an instance of Closure, an instance of a class which implements __invoke(), or a string representing a named function in the global namespace. In the anonymous function body above, $fibonacci is none of these. It is an undeclared, free variable in the closure created by...

David Stockton's Blog: Using local configuration files in Zend Framework

David Stockton's Blog: Using local configuration files in Zend Framework
David Stockton has a new post to his site looking at a handy tip those using the Zend Framework for their applications can use to simplify how they handle their settings - using local configuration files.I've run into a common issue [in my Zend Framework development]. This issue is multiple developers each needing a slightly different configuration from each other. Inevitably this means that each developer needs to maintain their own changes to a common configuration file. This tutorial shows you how to...

Sourcefabric Blog: Why Sourcefabric chose Zend as our PHP framework.

Sourcefabric Blog: Why Sourcefabric chose Zend as our PHP framework.
On the Sourcefabric blog today they've posted their reasons for choosing the Zend Framework to rebuild their applications in - Newscoop and Airtime.Back in the Fall of 2010, we needed a new PHP framework for our applications. Neither of our applications - Newscoop or Airtime - had anything that could really be called a framework, though our code was generally separated into Models, Views, and Controllers (MVC). But it wasn't pretty. We were in need of an established MVC framework to build on.They tried...

Filtering objects using annotations

Filtering objects using annotations
Filtering with Annotations PHP does not have native Annotations support, however many projects have been using doc blocks to add value and semantics to code, like PHPUnit, Doctrine and Symfony. The Doctrine did a really good job in making available a Annotation parser kit, which allows you to bring the power of annotations into you own project. This opens up a few possibilities. Input Validation and Filtering Rule #1 of the developer is aoFilter input, escape outputa. To me treating input has two...

Some notes from Desktop Summit 2011

Some notes from Desktop Summit 2011
As usual, Desktop Summit 2011 has been a lot of fun. I've been to most of the GUADEC and aKademy free desktop events in the past few years, but this was the first time I didn't give a talk. Even that way, it was definitely worth spending a week in Berlin. While much of the corporate involvement around the desktops has evaporated through some recent events, this seems to have given the developers lots more creative freedom. I've seen many very promising concepts from both communities.Here are some things...

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:WebReference.com: Build Your Own PHP Web Mailer TutToaster.com: How to create a forum in PHP from scratch TheseDays.com: An Easy Way to Detect Mobile Devices Jeremy Cook's Blog: Recursive Closures in PHP 5.3 Giulio Pons' Blog: Send push notification to iPhone with PHP and pushme.to PHP-GTK Blog: How to: PHP 5.3 with PHP-GTK and Cairo on Linux Mint 9 Cal Evans' Blog: 5 PHP twitter accounts that have replaced my feed reader Zend Developer...

Cli parsing in FlexyFramework, PEAR Console_GetArg

Cli parsing in FlexyFramework, PEAR Console_GetArg
Article originally from rooJSolutions blog AAnd another rare article get's published, I've been slacking off posting recently. As I've been busy getting some interesting sites online. The biggest being a rather fun viral advertising campaign on facebook www.facebook.com/deargoodboy. Which I ended up project managing, after originally only committing to do the facebook integration.Anyway back to the open source stuff. One of the tasks I've had on my todo list for a while is revamping the CLI handling of...

Feminist Consciousness, or Escaping the Matrix

Feminist Consciousness, or Escaping the Matrix
Feminist Consciousness, or Escaping the Matrix: gamesandtrips: Developing feminist consciousness-the awareness of the sexist systems of oppression-is very difficult at first because sexist oppression is so built into culture, into life, into the most mundane and exalted things, in a word, so ubiquitous, that one is tempted to believe that this is how hasa

Tom Jowitt's Blog: Streamlined PHP Development - Part III

Tom Jowitt's Blog: Streamlined PHP Development - Part III
Tom Jowitt has posted his third part in his "streamlined PHP development" series today focusing on working with databases and setting it up with your automated deployment system (parts one and two).In the first two parts of this series we covered setting up the server and an introduction to Phing. This post will cover managing our database code with dbdeploy and Phing.He points out that there's no "silver bullet" when it comes to automated database management but he's found dbdeploy as a good tool for...