When creating password hashes for storage, many programmers will run a password through MD5 once and call it a day, rendering those hashes very susceptible to attack if they're discovered. In this article, you'll learn how to create stronger hashes with PHP by using the RSA ...
Whether it's session ids, passwords or tokens in general, in the world of web development the ability to generate random alpha-numeric strings is a necessity. In this article I present a few simple yet effective PHP functions that can be used to generate strong alpha, numeri...
The ability to encrypt and safeguard data is an essential ability that every serious web developer should have in their arsenal. In this article we'll explore encrypting data with PHP and MCrypt (libmcrypt), storing it in a database, retrieving it from a database and decrypt...
So you've heard the fanfare over JSON, but still haven't had the opportunity to dive into using it. Well, as a matter of fact, you may have been using JSON all along and not known it. Compounded by the fact that since PHP 5.2 there is native support for JSON, learning how to...
Tags are a great way to organize user content such as photos, videos, articles and so on. This guide covers the necessary MySQL tables, SQL queries, PHP scripts, XHTML and CSS for adding tag support to your website. Apache mod_rewrite rules are also covered for search engine...
Web browsers use mime-types to determine how files should be handled. For example, if you open an image in your browser the image is displayed whereas a zip file will typically trigger a file download. In this article I detail why forcing file downloads can be advantageous a...
Does your web application only support the latin-1 (ASCII) character set? Are you having trouble switching over to UTF-8, running into garbled characters or question marks? In this article you'll learn everything you need to know about properly configuring Apache, MySQL, PHP...
Asynchronous JavaScript and XML allows you to communicate with server-side scripts behind the scenes via a JavaScript XMLHttpRequest object. In this article you'll learn all about AJAX, the XMLHttpRequest class and how to start developing interactive web pages with AJAX. A b...
This article aims to help newcomers to web development install and configure the Apache HTTP Server, MySQL Database and PHP Scripting Language (with various extensions) on either a Windows XP or Windows Vista operating system.