PHP

PHP – Writing An A to Z Loop

I was recently developing a PHP scraping script to extract the contents of a couple of websites and I wanted to find a quick way to run through a loop for each letter of the alphabet.  I figured since PHP was so versatile there had to be a quick and easy way, so I did […]

Continue Reading...

Linux

How to Configure a Static IP in Ubuntu 9.04

Start off by editing the file /etc/network/interfaces with your favourite text editor.  You will need to have root access to modify this file, so for example use the following command: Now tweak the file to your needs, this example sets the IP address to 192.168.1.123 on eth0.  I suggest running the command ifconfig beforehand and […]

Continue Reading...

Linux

Installing Pure-FTPd on Ubuntu 8.04 Server

Until recently my choice for an FTP server had always been ProFTPd, however I found its difficulty to install made it a constant chore every time I had to set up a server.  So I sought out an alternative that was quick and easy to install yet did not sacrifice functionality or security.  The answer […]

Continue Reading...