PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

ZF2 Modules You Can Use Today

One key new architectural feature of Zend Framework 2 is its new module infrastructure. The basic idea behind modules is to allow developers to both create and consume re-usable application functionality -- anything from packaging common assets such as CSS and JavaScript to providing MVC application classes.

Rob Allen's Blog: One-to-Many Joins with Zend_Db_Table_Select

Rob Allen's Blog: One-to-Many Joins with Zend_Db_Table_Select
Rob Allen has a tip for the Zend Framework users out there using the Zend_Db module to connect to their database resources - how to do a one to many join with the help of Zend_Db_Table_Select (easier than it sounds).Let's say that you want to set up a one-to-many relationship between two tables: Artists and Albums because you've refactored my ZF1 tutorial. [...] Assuming you're using Zend_Db_Table, the easiest way is to turn off the integrity check and do a join in a mapper or table method.He includes a...

Gonzalo Ayuso's Blog: How to protect from SQL Injection with PHP

Gonzalo Ayuso's Blog: How to protect from SQL Injection with PHP
In a recent post to his blog, Gonzalo Ayuso shares a few tips on preventing SQL injection attacks on your applications.Security is a part of our work as developers. We need to ensure our applications against malicious attacks. SQL Injection is one of the most common possible attacks. Basically SQL Injection is one kind of attack that happens when someone injects SQL statements in our application. You can find a lot of info about SQL Injection attack. Basically you need to follow the security golden rule:...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Secure Get Data URI ApPHP Data Grid ApPHP Data Form URI Rewrite Handler PHP Image Class SQL Object ApPHP Tabs Fast DB Class Generator

Kurt Payne's Blog: User register_tick_function to profile your code

Kurt Payne's Blog: User register_tick_function to profile your code
Kurt Payne has a new post to his blog showing how to use register_tick_function with a callback to help benchmark and profile your application to find its pain spots.A profiler gives you the ability to trace the performance of your code through every function call and create an overview of your system's performance over a certain time period and helps you make intelligent decisions about where to look for problems. [...] But what if you're in an environment where you can't install [the xdebug or xhprof]...

Chris Hartjes' Blog: How Not to Suck at PHP

Chris Hartjes' Blog: How Not to Suck at PHP
In this recent post to his blog, Chris Hartjes answers his request for a "rant topic" by responding to a question about "how to not suck at PHP" (from Travis Northcutt).I thought about this question for a while and have some thoughts on what it really means to know how to not suck at building things using PHP. In my never even remotely humble opinion I think the key is to understand what PHP is really good at.He talks about how PHP had the early-adoption advantage at first with Apache, but how things...

PHPMaster.com: Under the Hood of Yii's Component Architecture, Part 2

PHPMaster.com: Under the Hood of Yii's Component Architecture, Part 2
Following up on their previous look at the component architecture of the Yii framework, PHPMaster has posted this new tutorial showing how the framework allows you to do some event-based programming.An application event is something that occurs which might be of interest to other bits of code. A standard event in most GUI applications would be a "click" event, but the sky's the limit and what events you define is really up to you. [...] The details can be provided by application-specific modules allowing...

Learning JavaScript

Learning JavaScript
One of my goals this year is to acquire new skills, so I've decided to start by learning JavaScript. As was the case when I learned html and CSS, it's a tricky endeavor, because I'm not exactly a beginner, and most stuff is geared toward beginners, which can make learning so inefficient that I lose my motivation. I've decided to treat this effort just like I treat exercise, which is to focus on rhythm and consistency above all else. Don't break the chain. My days are packed, but I'm setting aside at...

NetTuts.com: Turbocharge your Website with Memcached

NetTuts.com: Turbocharge your Website with Memcached
On the NetTuts.com site there's a new tutorial showing you how to introduce the Memcached tool to your application - a quick and easy way to cache data and optimize performance.Your latest PHP/MySQL website is finally online. And it's awesome. But it's not as fast as you want it to be, because of the many SQL queries running every time a page is generated. And above that, you have the feeling it will not scale well under heavy loads. And you are most likely right. In this tutorial, we will see how you...

Brandon Savage's Blog: New Rockville PHP Group

Brandon Savage's Blog: New Rockville PHP Group
If you're in the Montgomery County, Maryland area and are a PHP developer looking to reach out and meet others, you should check out this new post from Brandon Savage. He's trying to start up a user group in that area.There are lots of active, vibrant developer groups in the DC area: DC PHP, Baltimore PHP, and the Frederick Web Tech group. The DC PHP Beverage Subgroup meets monthly in Northern Virginia. But in the middle between all these groups lies Montgomery County, Maryland. In that area live...

Voices of the ElePHPant: Interview with Elizabeth Naramore

Voices of the ElePHPant: Interview with Elizabeth Naramore
The Voices of the ElePHPant podcast has released their latest episode (one recorded a while back) - an interview with Elizabeth Naramore, a well-known PHP community member.This episode was recorded in 2011. Elizabeth now works for Orchestra.io. It's still a fun interview though because...well, it's Elizabeth.You can find her blog here and follow her on Twitter here. If you'd like to listen to this latest episode, you can either listen in-page or download the mp3 directly.

Community News: Latest PECL Releases for 02.07.2012

Community News: Latest PECL Releases for 02.07.2012
Latest PECL Releases: sundown 0.1.0b yaf 2.1.7 haru 1.0.3 mysqlnd_ms 1.2.2

JavaScript Days - Meet the experts

JavaScript Days - Meet the experts
Qafoo is happy to announce the three day JavaScript event taking place in Cologne from 12. - 14. March 2012. Presented by "entwickler akademie" (PHP-Summit) and supported by Qafoo it will be an amazing event fully packed with expert knowledge for all your JavaScript needs.

The MicroPHP Follow-up FAQ

The MicroPHP Follow-up FAQ
My previous post, The MicroPHP Manifesto, resulted in much excitement. In between fits of rage and crying, I found some time to answer folks questions, and also discuss the topic on the /dev/hell podcast with my cohost Chris Hartjes. To summarize and address some of the common questions, I felt I should write a small FAQ. Got a question? Ask me. I'll add additional entries here as things come up.So you think full-stack frameworks suck?No. I think sometimes they're very appropriate. It depends on your...

JavaScript Days 2012

JavaScript Days 2012
Packed with a huge number of workshops, hosted by well known speakers like Douglas Crockfort, Christian Johanson, Kore Nordmann or Thorsten Rinne the 1st Edition of the JavaScript Days in cologne already sounds like one of those 'need to be there' events. For those who act fast, the early bird period is still ongoing and open until next Saturday, 10th of February.

Content Security Policy update

Content Security Policy update
A quick update about CSP. Browsers are well on their way to all adopt the specification. An early draft was already adopted by Firefox 4, and I just found out that it's also working in Chrome, Safari and IE 10.IE10 and FF are using the following header:X-Content-Security-Policy: default-src 'self'While Safari and Chrome use:X-Webkit-CSP: default-src 'self'When the specification is finalized, the X- will be dropped, and it will simply be 'Content-Security-Policy'.A call for supportHi Developers! Start...

Ben Selby's Blog: DocBlox Plugin For Sublime Text 2

Ben Selby's Blog: DocBlox Plugin For Sublime Text 2
Ben Selby has released a Sublime Text 2 plugin for the popular PHP-based documentation generation project DocBlox.It seems that the editor of the moment is Sublime Text 2 and sadly I have to tip my hat to Gary Rockett for showing it off to me one day.. Since that day, I've been a 100% convert. [...] So, I decided to peak into the PHPUnit [plugin from Stuart Herbert] to see if I could create a DocBlox Plugin. It turns out you have to write Plugins in Python, which is interesting, since I know very little...

Content Security Policy update

Content Security Policy update
A quick update about CSP. Browsers are well on their way to all adopt the specification. An early draft was already adopted by Firefox 4, and I just found out that it's also working in Chrome, Safari and IE 10.IE10 and FF are using the following header:X-Content-Security-Policy: default-src 'self'While Safari and Chrome use:X-Webkit-CSP: default-src 'self'When the specification is finalized, the X- will be dropped, and it will simply be 'Content-Security-Policy'.A call for supportHi Developers! Start...

PHPClasses.org: Another Serious Security Bug on PHP 5.3.9

PHPClasses.org: Another Serious Security Bug on PHP 5.3.9
On the PHPClasses.org blog there's a new post detailing an issue that came up in the PHP 5.3.9 release that caused a large security issue (PHP 5.3.10 has, however, already been released to correct the issue). PHP 5.3.9 release was mostly meant to fix a security bug, but it introduced a new more serious bug. PHP 5.3.10 was just released to fix this issue. [...] This time it is a bug that allows arbitrary remote code execution. This means that it allows to run arbitrary code on the server, injected by an...

PHPMaster.com: Tracking Upload Progress with PHP and JavaScript

PHPMaster.com: Tracking Upload Progress with PHP and JavaScript
In a new tutorial today from PHPMaster.com, they show you how to combine Javascript and a PHP feature to track the progress of an upload to your web application.A problem that has plagued web developers for years is how to add real-time information to their applications, such as a progress bar for file uploads. [...] JavaScript can access a file's name, type, and even the width and height of a local image, but it wasn't until HTML5 that it could access a file's size. [...] In this article I'll show you...