Currently browsing author

Graham Hagney

Ensuring that your “javascript”, “CSS” important files are refreshed Automatically when files modified…..

To ensure that Important files are Automatically refreshed by a clients browser the following can be used…. <?php echo ‘<link rel=”stylesheet” type=”text/css” href=”style.css?’ . filemtime(‘style.css’) . ‘” />’; ?> Sample output: <link rel=”stylesheet” type=”text/css” href=”style.css?1203291283″ /> By appending a GET value (the UNIX timestamp) to the stylesheet URL, you make …

How to setup Apache MySQL PHP

ApacheMySQLPHP To find the Ubuntu Server Guide related to your specific version, please go to: https://help.ubuntu.com/ and click on Ubuntu Server Guide Parent page: Programming Applications This is to help people setup and install a LAMP(Linux-Apache-MySQL-PHP) server in Ubuntu, including Apache 2, PHP 5 (optionally PHP 4 in Ubuntu 6.10 and lower), and MySQL …

Outgoing Mail Servers (SMTP) of Major Australian ISPs

. ISP Outgoing Mail Server AAPT : mail.aapt.net.au Bigpond : mail.bigpond.com Blink Internet : mail.blink.m2.com.au Dodo : smtp.dodo.com.au iiNet : mail.m.iinet.net.au Internode: mail.internode.on.net iPrimus smtp.iprimus.com.au OntheNet mail.onthenet.com.au Optusnet : mail.optusnet.com.au Ozemail : smtp.ozemail.com.au People Telecom : smtp.syd.people.net.au (NSW) Three (3G Mobile) : smtp.three.com.au TPG : mail.tpg.com.au Unwired : esmtp.unwired.com.au —** …

Clear Ubuntu Filesystem Memory cache

sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches” or sync; echo 3 > /proc/sys/vm/drop_caches   run in the Root Terminal this worked for me on 10.04 There are actually two things you can clear, and they’re both read caches. Write caching is a different thing entirely, and is referred to as …

Simple Ajax code

Simple Ajax Example Ajax is the method of using Javascript, DHTML and the XMLHttpRequest object to perform a GET or POST and return a result without reloading the HTML page. Below is a very simple Ajax example that calls a CGI script that prints out the word sent to the …

Setting A Cookie via Javascript

Scripts — Javascript Cookie Script Here’s a basic Javascript cookie script, it’s from the public domain one, unfortunately we can’t remember it’s source, if anyone knows it, we’ll add that to the script header. This code is provided as is, but has been tested extensively over the years, and should …

Tips on How to Create a Strong Password

Choosing a strong password is of great importance to everyone. However, it is not always easy to know what makes a strong and secure password which would leave hackers empty handed and reduce the potential of being a victim of other online threats. Here are some simple tips on how …

Setting a Permenant IP Address in UBuntu

To permanently set up the ip and gateway, you have to edit /etc/network/interfaces. It is advisable if you backup the existing interfaces file, if it is available. 1. Backup /etc/network/interfaces$ sudo cp /etc/network/interfaces /etc/network/interfaces.bak 2. Open the /etc/network/interfaces using your favorite text editor$ sudo vi /etc/network/interfaces 3. Add the below …

Setting up a temporary IP Address – Ubuntu

To set ip temporarily using ifconfig and route commands 1. Run the command below to set ip and netmask$ sudo ifconfig eth0 10.20.1.10 netmask 255.255.255.0 upwhere eth0 is the name of the interface, 255.255.255.0 is the netmask and up to activate the interface 2. run route command to set default …