Archive for the ‘web development’ category

PHP Optimization Tips: Get the Most Out of Your Applications

December 19th, 2011 Leave a comment 4 comments
PHP Optimization Tips: Get the Most Out of Your Applications

Like any scripting language, PHP can be used in a variety of applications. The down-side for most programmers is that when they learn how to write PHP, they do not always learn how to write PHP with speed and optimization in mind. This article addresses five ways you can improve your code with minor changes that will yield large gains as well as teach you how to become a better PHP developer. One of the most important things you can do when improving PHP application performance is begin measuring your application to find a baseline performance time for different… View full post »

PHP Error Handling Explained

December 8th, 2011 Leave a comment
PHP Error Handling Explained

Error handling is the process of catching errors and unexpected behavior from your program and dealing with them appropriately. When developers write code they always seem to leave error handling for the end instead of making it part of the development process. Part of being a good developer is setting up your applications to handle errors gracefully and without causing trouble for the user. Developers that are new to PHP sometimes complain that there is no built-in error handling functionality, but what they haven’t learned yet is that the functionality is there – you just have to… View full post »

Creating a Website in HTML5

December 7th, 2011 Leave a comment
Creating a Website in HTML5

Creating a new website in HTML5 can be daunting, especially for those of us with no clue as to what it is or how it’s different from HTML4. Here’s a quick guide to help you get set up with HTML5 and get a valid, compliant site up and running! 1. Get hosting and a domain name This one hasn’t changed since HTML4, but I thought I’d mention it all the same. You’re still going to have to get a domain name and hosting to host an HTML5 site, and the good news is that requirements for hosting providers have not changed with… View full post »

PHP Caching Solutions: Best of the Pack

November 23rd, 2011 Leave a comment 2 comments
PHP Caching Solutions: Best of the Pack

Site performance versus traffic: it is a tough battle to fight. When working with PHP applications we usually have to face this issue sooner or later, as a site becomes more popular it can begin to suffer from performance issues. There are several ways that you can improve your site’s performance to help solve this problem, but one of the easiest ways is to set up PHP caching. PHP Caching is an excellent solution for Web sites that wish to improve their site performance by allowing their dynamic pages to be stored client-side by your application. These solutions… View full post »

jQuery Quick Tutorial

November 14th, 2011 Leave a comment 1 comment
jQuery Quick Tutorial

Whether you are new to JavaScript or have been developing for the Web for a while, learning jQuery can seem like a daunting task. If you have been wanting to give it a try, here is a quick primer to give you the facts and help you get started along with some examples for you to try out. If you want to play with the examples from this tutorial, feel free to download them from here. What is it? jQuery was originally developed by John Resig of the Mozilla Software Foundation in 2006 with the motto of “Write less, do more”…. View full post »

PHP Profilers Compared

November 10th, 2011 Leave a comment 3 comments
PHP Profilers Compared

Whether you are an experienced developer or just getting started it is important to know how to measure the performance of your scripts and applications so that you can learn to make improvements and optimizations to your code. There are several tools available, both commercial and free, that will allow you to make these kinds of measurements in your environment. Some tools are very simple and only look at log times to determine how long a request has taken; others have more features and offer full application profiles, query analyzers and execution plans. This article compares two… View full post »

How HTML5 Improves the Semantic Web

November 8th, 2011 Leave a comment 1 comment
How HTML5 Improves the Semantic Web

For some time, web designers and developers have been talking about the “semantic web”. Ever since table based design went out the window, there has been an emphasis on using CSS to create semantic class names to mark up elements in a way that described the content and not the presentation. This is really an extension of the idea of separation of presentation and content. In “semantic” web design, HTML div tags are used to create the various blocks of content. The CSS class names are created to describe the contents. As a result, you… View full post »

HTML5 Editors: 5 Best Tools for Web Developers

October 2nd, 2011 Leave a comment 1 comment
HTML5 Editors: 5 Best Tools for Web Developers

With HTML5 quickly becoming widely accepted in today’s online arena, the HTML4 editors of yesterday are no longer up to the task of providing the most cutting-edge development environment possible. Finding a replacement, however, can be quite a task: fortunately, we’ve gone out and found a few HTML5 editors for you to get your HTML5 development going and keep on the cutting-edge of Web creation! 1. Mercury HTML5 Editor The first tool on the list is interesting in that it’s also written in HTML5: talk about enforcing the no-legacy route! Mercury HTML5 Editor is a web-based editor in the style of TinyMCE… View full post »

Section 508 – The Web Accessibility Act: What is It?

September 9th, 2011 Leave a comment 1 comment
Section 508 - The Web Accessibility Act: What is It?

The very first question many web designers ask when “Section 508″ is mentioned comes back at me with this: “What the heck is Section 508?” The reaction is understandable, given the rather understated publicity Section 508 has received in the web design world; I myself only learned of its existence a few years ago, even though the law was signed into effect by President Clinton in 1998. There hasn’t, at least in my experience, really been a push for awareness or compliance for accessibility in many private websites, and so far the vast majority of Section 508 compliant websites seem to… View full post »

PHP Tutorial: An Introduction to PDO

July 5th, 2011 Leave a comment
PHP Tutorial: An Introduction to PDO

Since its inception, PHP has moved from a procedural language to an object-oriented one; some of its procedural roots, however, still linger. One of these procedural remnants is an antique method of accessing SQL databases; many programmers still use the older mysql and postgresql procedural modules to access databases, and even those who have switched to newer methods, like mysqli, might still be hampered by the fact that such a module only works with mysqli. PHP has since implemented better methods, but many procedural PHP developers are unsure of how to use newer, object-oriented MySQL connection methods. Let’s delve… View full post »

HTML5 Application Caching

April 6th, 2011 Leave a comment
HTML5 Application Caching

HTML5 has a number of great things about it that HTML4 did not; in this article, we’re going to talk about one specifically, principally how much better it is at dealing with offline caching than its predecessor. In HTML4, you had no alternative to offline caching except for manually downloading whatever it is you wanted off the website you were browsing; this was clumsy and inefficient, especially since the website can change daily or even hourly, rendering your offline copy useless until you manually downloaded it all over again. Furthermore, the page would render oddly if you didn’t download all… View full post »

Best PHP Books: My Top 5 Choices

March 28th, 2011 Leave a comment 2 comments
Best PHP Books: My Top 5 Choices

Continuing with our best-five-book series, today we are introducing our pick of the top 5 PHP books. Obviously, PHP has been around much longer than our other review subjects such as Android or HTML5, and there is a greater general variety of books to choose from. PHP is, in many ways, unique in the land of programming languages and web-based application infrastructure. It’s a language that is changing rapidly (the most notable shift being from procedural to OOP in PHP5) but there are surprisingly few books and helpful manuals to help programmers adapt to these changes (as evident by the… View full post »

Embedding Video In An HTML5 Webpage

March 24th, 2011 Leave a comment
Embedding Video In An HTML5 Webpage

No Internet user is a stranger to embedded video; from ads to YouTube music videos, embedded video has become as much a part of most webpages as text or images. Up to now, however, the HTML standard did not have any way to natively include video; these videos are embedded by using other plugins and non-standardized ways to make them show seamlessly on the page. In the new HTML5 standard, however, there is a way to embed video natively in a webpage, avoiding all of the headaches of plugins and third-party solutions for embedded video. The problem is solved with a… View full post »

jQuery Lightbox Plugins: Top 5

March 21st, 2011 Leave a comment
jQuery Lightbox Plugins: Top 5

Everybody loves the good ol’ Lightbox image plugin. It has great utilities that spruce up a boring photo gallery with some awesome effects, and they’re generally very easy to install and customize. The only catch is Lightbox is based on the Prototype Framework and Scriptaculous Effects, a duo that hasn’t been as popular as the jQuery library. Most sites today do use jQuery, and adding two additional Javascript frameworks to the mix is both risky (there is a potential for construct conflict) and expensive (requires additional bandwidth on the page), especially if their sole purpose is to serve the… View full post »

PHP & MySQL Best Practices for Rock-Solid Applications

March 11th, 2011 Leave a comment 2 comments
PHP & MySQL Best Practices for Rock-Solid Applications

PHP and MySQL are often the preferred technologies for building web applications because they allow you to build robust web applications very rapidly. This rapid development, however, sometimes leads to code that is hard to maintain, doesn’t scale well or performs poorly. Fortunately, there are a few things that you can do early in your application development cycle that will keep your application from developing problems. Follow these PHP/MySQL best practices to build rock-solid applications. Also, keep in mind in general that a bit of extra time invested upfront in keeping your code easily maintainable will save… View full post »