• Print dialog does not appear in Outlook Express or Internet Explorer

  • Today I get a call.

    Outlook Express won’t print.

    I log in and take a look. Everything seems normal, and normal documents appear to print.

    However, when I click the print button or go to File > Print nothing happens. Strange.

    They are running Windows XP Professional SP2, with IE6.

    Read More »

  • suPHP and .phps PHP code highlighting support

  • Today a user on one of my web servers asked me why .phps files would only download and not show the highlighted PHP code as expected.

    This is usually done by adding the following to your “httpd.conf”…

    AddType ‘application/x-httpd-php-source’ .phps

    We use the cPanel web hosting control panel and to improve security cPanel recommend using suPHP, which allows PHP scripts to run as a user rather than “nobody”.

    This means that adding the above line to “httpd.conf” does not work with suPHP.

    So what can be done?

    Read More »

  • longip perl script

  • I wanted to create a script that would convert a normal IP address to a long IP, just like mIRC Script's $longip alias.


    Converts an IP address into a long value and vice-versa.

    $longip(  returns 2660774639

    $longip(2660774639)       returns

    What I was originally trying to do was increase an IP by 1, but due to the octets only allowing up to 255, this became increasingly difficult to do.

    What I decided to do in the end was convert the IP to a “longip” then increase it by 1, then convert the IP BACK to normal IP.

    This required a way to convert an IP to and from longIP, I was told it could be done purely using shell script, here’s what I did…

    Read More »

  • What is a hacker?

  • Not so long ago I was asked to answer some questions for a friend of a friend who was writing a dissertation about the “hacking and warez scene” (which I have not been heavily involved in since I turned 18).

    As I had known him for a long time, I felt obliged to help out, plus I was now interested in the questions that would be asked.

    Based on what had been said I knew they were going to be questions on defining what a hacker is and what a hacker does, something i’ve been interested in defining for quite some time.

    Here’s what I said…

    Read More »

  • Friendly URLs (revisited)

  • Turn dynamic URLs into friendly URLs

    I’m sure we’re all familiar with URLs that look like this:

    These type of URLs aren’t particularly “friendly”, they are known as dynamic URLs. As a rule of thumb search engines such as Google don’t like them as much as “static URLs”.

    However, Google has recently released an article on this very subject entitled Dynamic URLs vs. static URLs, I recommend you give it a read so you fully understand what we’re talking about.

    Read More »

subscribe via RSS