Storing mySQL database settings for php and perl in one file

I have a situation where there’s two scripts.

  1. The main core of the code which is PHP based.
  2. A perl script which is called by the mail server for parsing incoming mail.

Both of these scripts require database access to the same database.

Read the rest of this entry »

Comments (2)

Rip and decode mp3s via myspace music player

I’m always looking for new ways to get my hands on mp3s, this is yet another way, thanks to myspace.

I figured out that there must be a way we can get our hands on the actual mp3 files found on the myspace music player.

All we had to do was decode their site so we are able to grab their mp3s.

Read the rest of this entry »

Comments (18)

Word separators in URLs

In the world of web development and search engine optimisation you find this topic is frequently discussed, yet often without any reasoning or conclusion. Therefore the purpose of this article is to investigate why.

So, let’s start at the very beginning, and find out what “word separators” actually are, and why we need them in URLs.

Traditionally a word separator is a space, yes, an every day space you create with your space-bar key.

The problem with using spaces in URLs is that when the URL is utilised in a browser (for example), the URL is encoded using percent encoding which causes spaces to appear as the encoded “%20″, resulting in an ugly URL formation which is humanly difficult to read.

ie: http://www.example.com/percent%20encoding

How do we overcome the problem? Over the years a workaround has developed…

…the dash, no the hyphen, no in fact it’s the minus sign (yes, I mean this “-” symbol)…

ie: http://www.example.com/not-percent-encoding

Read the rest of this entry »

Comments

OpenCart v0.7.9 released

OpenCart is an open source PHP-based e-commerce online shop website solution. Ideal for new or existing stores to start selling online.

OpenCart all began because (at the time) the leading open source e-commerce solution out there was not very good, to say the least.

The first notable release was OpenCart v0.5 back in late 2006 and has been gaining momentum ever since.

The project is lead by Daniel Kerr, and I have also recently joined the team.

Download OpenCart v0.7.9

If you need any assistance with OpenCart, you can find me on the OpenCart Community Forums, and on the OpenCart Google Code project site.

Don’t forget to donate!

Enjoy!

Comments

Transfering domains from Godaddy.com to TuCows OpenSRS

I need to transfer a bunch of domains from Godaddy (aka Godamnannoying) to TuCows (aka OpenSRS), surly it can’t be that difficult? Right?

I found that there were lots of articles on how to transfer to Godaddy, but not how to get out. This is a short guide on how to transfer away from Godaddy, in this case we will be transferring to OpenSRS.

This guide is appropriate for .com, .net, .org, .name domain names.

Read the rest of this entry »

Comments (4)

How I hacked my schools website - a look into the past

When I was about 16 I hacked my schools website, why? how? Let’s find out…

Read the rest of this entry »

Comments (3)

So how did I get infected in the first place?

People often ask me how their system got infected in the first place, this article attempts to make you aware of where infections come from, in an attempt to help you prevent them in the future.

Read the rest of this entry »

Comments

FreeBSD 6.2 “/usr/ports: No such file or directory”

I recently setup a new FreeBSD 6.2 server, only to find the following:

server# cd /usr/ports
/usr/ports: No such file or directory.

Read the rest of this entry »

Comments (7)

Does registering a domain for a longer term increase your search engine rankings?

Recently I come across a claim by Network Solutions stating:

Did you know? Registering a domain name for a longer term not only saves you money, but helps to increase your search engine ranking. Consider a 5-year term!

Why it works: Search engines perceive domain names registered for 5 years or longer to be more legitimate than domain names registered for a shorter term, and therefore rank them more highly.

Source

Read the rest of this entry »

Comments (2)

Next time i’m buying a mac

Recently I decided to get away for a break, so I left the country with all intention of not doing anything work related for a week.

This was all fine, but to check my personal emails I decided to find an internet café to rather than use my mobile phone to save my pennies.

Read the rest of this entry »

Comments (1)

« Previous entries · Next entries »