Archive

Archive for April, 2009

5 Helpful Tips for Creating Secure PHP Applications

April 21st, 2009 Gertjan 1 comment

PHP is one of the most popular programming languages for the web. Sometimes a feature-friendly language can help the programmer too much, and security holes can creep in, creating roadblocks in the development path. In this tutorial, we will take a look at 5 tips to help you avoid some common PHP security pitfalls and development glitches.

Read more…

Categories: PHP Tags: , ,

Bot Detection with PHP

April 21st, 2009 Gertjan 1 comment

Bots or Crawlers, are basically search engines crawling around the internet. This is how you get your pages on search engines (well, a major way). Bot Detection isn’t something super vital, but if your CMS or website already has practically everything, then you need Bot Detection.

Really Bot Detection isn’t as difficult as you might guess. The SERVER variable $_SERVER['HTTP_USER_AGENT'] has in it a lot of cool info on the visitor such as the Browser they are using and if it’s a bot/crawler, the name of the Bot.

Read more…

Categories: PHP Tags: , , ,

PHP and AJAX – Make a Password Strength Bar that Updates in Real-time

April 21st, 2009 Gertjan No comments

This tutorial will show you how to make a very simple feature which will help your users make more secure passwords, in registration forms. After the user types their password, this script will make a request to a PHP page, which will check the password for lowercase letters, uppercase letters, numbers and symbols. Without reloading the page, a bar displaying the strength of the password will be shown to the user.
Read more…

Use Windows Login (Active Directory) For your PHP applications

April 21st, 2009 Gertjan No comments

As a developer you may run into a situation such as what I had, numerous applications deployed.

With multiple logins for all the apps, we had to find way to integrate all logins for better management and maintenance.

Since we were using Apache with a PHP server, the solution was to find a way to consolidate the logins using PHP.
Read more…

Categories: PHP Tags: , , , ,

Five more PHP design patterns

April 5th, 2009 Gertjan No comments

PHP V5’s object-oriented features give you the ability to implement design patterns to improve your code’s design. When you improve your code’s design in this way, it becomes more readable, more maintainable, and more robust to absorb changes.

Read more…