Protecting PHP scripts from unauthorized inclusion

Hi guys sorry I’ve not posted anything in a couple of months, been rather busy with work. Now that christmas is out of the way I’ll start posting on a regular basis again. Anyway I’ve been writing my own custom MVC framework and it occurred to me that some files should only be included by certain scripts. To my knowledge … Continue reading

Posted in Advanced PHP | 1 Comment

Vertical Gradient Background with GD

Hey guys, sorry I’ve not updated my blog for over a month but I’ve been busy. I’ve created a function that lets you fill a GD image with a vertical gradient background. I’m still tinkering with it to use co-ordinates so you can have a vertical gradient anywhere on the image, not just the background. Hope you find it useful. … Continue reading

Posted in PHP for Beginners! | 1 Comment

Protecting the wp-admin directory

Since WordPress is both popular and open-source, inevitably it has become an easy target for “hackers”, which is why it’s important to secure your wp-admin directory. The most effective way to do this is to use a htaccess file to deny all access to the wp-admin folder except from your IP address. True, this means that when your IP address … Continue reading

Posted in Wordpress | Tagged , | 3 Comments

5 must have tools for any PHP developer

Hello and welcome! Today I’m going to show you some of the free tools I use when writing PHP for either my own or one of my client’s websites. You’ll see just how much simpler life can be if you have the right tools for the job. All you need to start coding PHP is access to a web server … Continue reading

Posted in PHP for Beginners! | Tagged , , , | 1 Comment

How to rename the wp-admin directory

Hi there, In this article I want to tackle a frequent problem for wordpress users that more often than not goes unsolved – Renaming the WordPress admin folder ‘wp-admin’. Warning: Renaming the wp-admin folder is a bad idea. Plugin & theme developers assume that your admin folder will always be ‘wp-admin’ so by renaming the folder, any future plugins/themes you … Continue reading

Posted in Wordpress | Tagged | 2 Comments

Setting up Virtual Hosts in WAMP

Today I want to show you how you can setup VirtualHosts in WAMP. This article is targetted at people with the WAMP server application installed on their machines but should apply to anyone wanting to enable and use VirtualHosts on their Apache powered web server. What are Virtual Hosts? VirtualHosts are a way of managing multiple websites hosted on one … Continue reading

Posted in Web Servers | Tagged , | 4 Comments

An Introduction to PHP

Hi there. Let me start by saying.. well done! you’ve taken the first step on your journey to becoming a genuine, bonified php monkey! Its a step that we’ve all taken and its one hell of a ride. So, why dont we get started? Note: I highly recommend you have a solid understanding of HTML before learning PHP, its the … Continue reading

Posted in PHP for Beginners! | Tagged , | 1 Comment

Setting up WAMP

Hi there! In this article I’ll be showing you step-by-step how to install Apache, MySQL and PHP locally on your machine. Perfect for testing your websites in a similar environment to a live web host. Now, I could show you how to install Apache, MySQL & PHP individually so you get a better grasp of how each interacts with each … Continue reading

Posted in Web Servers | Tagged , , | 3 Comments