PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3421 to 3440 of 6889

Hyperpolyglot.org: Syntax for Common Tasks - Side-by-side (Ruby, Perl, Python & PHP)

Hyperpolyglot.org: Syntax for Common Tasks - Side-by-side (Ruby, Perl, Python & PHP)
On Hyperpolyglot.org there's an interesting listing of scripting language syntax - PHP, Python, Ruby and Perl - showing some of their common syntax and data structures side by side.Sections of the reference sheet include arithmetic and logic arrays execution control libraries and modules objects reflection It's interesting to see how the various languages compare, where some have shortcuts for things and others fail at the same (or make it much more difficult). Descriptions for the different row types...

Stuart Herbert's Blog: PHP Components: PHP Components: Shipping Unit Tests With Your Component

Stuart Herbert's Blog: PHP Components: PHP Components: Shipping Unit Tests With Your Component
Stuart Herbert has his latest post in his "PHP Components" series on his blog today - a recommendation to include unit tests along with the release of you component.I'm now going under the bonnet of our components, and looking at the different file roles that the PEAR installer expects to find when we distribute our component as a PEAR-compatible package. One of the most important file roles allows you to ship your tests with your package - and it's vital that this is something that you get in the habit...

Mike Purcell's Blog: Symfony - sfGuardPlugin - Use Email Instead of Username

Mike Purcell's Blog: Symfony - sfGuardPlugin - Use Email Instead of Username
Mike Purcell has a handy new post for the Symfony users out there wanting more flexibility with their sfGuardPlugin use in their application. He describes how you can use email instead of a username for working with the user information.sfGuardPlugin is pretty awesome. It allows a symfony developer the ability to quickly implement a user login and access control system. However, there is an issue with respect to telling the plugin whether to use the username or the email column for validating user...

Community News: Latest PEAR Releases for 08.15.2011

Community News: Latest PEAR Releases for 08.15.2011
Latest PEAR Releases: Mail_Mime 1.8.2 Net_Whois 1.0.5 Date_Holidays_Spain 0.1.2 Net_SMTP 1.6.1

PHP Components: Shipping Unit Tests With Your Component

PHP Components: Shipping Unit Tests With Your Component
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. I'm now going under the bonnet of our components, and looking at the different file roles that the PEAR installer expects to find when we distribute our component as a PEAR-compatible...

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...

Latest PHP Tweets