I'm trying to use the $SERVER_NAME variable to create links on my site so that the pages I create can work on the two environments I am running (one dev and one productions) but when I use the $SERVER_NAME variable on my production environment (http://www.cwcraft.com) it only returns "cwcraft.com". Is there a way for me to call something that will return "www.cwcraft.com". The other strange thing is that when I use this on my dev environment (dev.cwcraft.com) it returns the whole string.
Any ideas?
Thanks in advance