Function to get URL, but maintains the "www"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
target
Forum Newbie
Posts: 7
Joined: Thu Oct 18, 2007 9:47 am

Function to get URL, but maintains the "www"

Post by target »

Does anyone have a PHP function that includes the "www" if it exists?

I need to check for the WWW but all current functions seem to omit the "www" regardless of whether it's there.

Thanks for the help.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Function to get URL, but maintains the "www"

Post by Jonah Bron »

Post Reply