Yii Routing, Active Record and Caching
Almost all modern web apps have 3 major concerns: Retrieving data from a database easily and effectively, caching the web content and URL rewriting to create user friendly URLs. Yii, like any other good framework, offers simple and easy solutions to all of the above. In my previous article I covered the basics of building […]
Hashing Passwords with the PHP 5.5 Password Hashing API
Using bcrypt is the currently accepted best practice for hashing passwords, but a large number of developers still use older and weaker algorithms like MD5 and SHA1. Some developers don’t even use a salt while hashing. The new hashing API in PHP 5.5 aims to draw attention towards bcrypt while hiding its complexity. In this […]
Using the HTML5 Constraint API for Form Validation
Creating Offline HTML5 Apps with AppCache
In this tutorial, Sandeep Panda explains in detail how AppCache works and how you can use it to build awesome HTML5 apps that work offline.
Build a CRUD App with Yii in Minutes
Yii is a fast, secure, and high performing framework that’s well-suited for rapidly building web applications. It’s code generation faculties can save you a lot of time and effort because you don’t have to start from scratch. Let’s see just how easy it is to create a fully functional CRUD system in only a few minutes with Yii.
Crop and Resize Images with ImageMagick
If your site allows users to upload photos, then image cropping/resizing functionality can certainly come in handy. Users might not have access to image programs like Photoshop, so by providing a cropping/resizing feature you can let them upload photos without them having to worry about the final size. See how you can create an image cropping tool with the help of the ImageMagick PHP extension.
Creating a Notepad app with indexedDB
In this tutorial, Sandeep Panda gives an overview of indexedDB API and explains how to use it to create a simple notepad application.
Introduction to the HTML5 WebSockets API
HTML5 has introduced many new interesting APIs, including WebSockets. WebSockets allow developers to create powerful real time applications by establishing socket connections between the browser and the server. In other words both the client and server can exchange data at any time because of a persistent connection. This tutorial explains how to use WebSockets to […]
Parsing XML With SimpleXML
An increasing number of web services return data in JSON format, but a large number still return XML, so you need to master parsing XML if you really want to consume the full breadth of APIs available. Using PHP’s SimpleXML extension that was introduced back in PHP 5.0, working with XML is very easy to do.
8 Practices to Secure Your Web App
When it comes to application security, in addition to securing your hardware and platform, you also need to write your code securely. The number one rule is: “Don’t trust user input” But there’s more. This article explains what else you can do to keep your application secure and less vulnerable to hacking.