-
Apache redirect for wildcard domains
We recently had to redirect a wildcard domain to another wildcard domain using Apache redirects. It is assumed you have already enabled mod_rewrite, if not make sure you enable that apache module before you try adding this rule.
Read the rest of this entry » -
Updating Server Time on Ubuntu
A handy way to help keep a Ubuntu server’s date current is to add a daily cron job that runs the ntpdate command. To do this you just repeat the following in a terminal.
Create a file named ntpdate in /etc/cron.daily/ :sudo nano /etc/cron.daily/ntpdateNow add the following to this file:
ntpdate ntp.ubuntu.com pool.ntp.orgSave and exit, then make the job executable:
sudo chmod 755 /etc/cron.daily/ntpdateYour server will now update once a day using either the ntp.ubuntu.com or pool.ntp.org time server. But there is a better way…
Read the rest of this entry » -
Warning: Cannot modify header information – headers already sent…
When moving a PHP application between servers or hosts, or updating your PHP, you may run into an error similar to something like this:
Warning: Cannot modify header information - headers already sent by (output started at /path/to/site/public_html/config.php:517) in /path/to/application/public_html/somepage.php on line 153This is often referred to as a PHP whitespace problem, meaning somewhere in the PHP file there is an empty space, usually at the beginning or end of the file.
Read the rest of this entry » -
Adding SMTP and POP3 to a Hotmail Account
It appears that Microsoft may be learning from the success of a little company known as Google. Now you can finally migrate all your Hotmail messages into a much superior Gmail account with Microsoft’s addition of POP3 and SMTP. Some countries (United Kingdom, Canada, Australia, France, Japan, Spain, Germany, Italy, and the Netherlands) already have this feature, but it will not be worldwide until the end of 2009. However, with a little trickery it can be accessed by everyone now.
To setup POP3 and SMTP with your Hotmail aka Windows Live Mail you need to know some server settings.
Read the rest of this entry » -
Generating Word Clouds
This is a interesting little web application that will allow you to make a ‘word cloud’ out of all the words posted on your web site. Go to http://www.wordle.net to make your own.