newb Posted June 4, 2010 Share Posted June 4, 2010 how can i check a URL string for "www" and if it doesnt have it how to add it Link to comment https://forums.phpfreaks.com/topic/203822-check-for-www/ Share on other sites More sharing options...
trq Posted June 4, 2010 Share Posted June 4, 2010 What have you tried? Link to comment https://forums.phpfreaks.com/topic/203822-check-for-www/#findComment-1067541 Share on other sites More sharing options...
ignace Posted June 4, 2010 Share Posted June 4, 2010 A URL doesn't need the WWW-part (at least in most cases where the server has been put up properly) eg http://phpfreaks.com/forums/ works too. Link to comment https://forums.phpfreaks.com/topic/203822-check-for-www/#findComment-1067546 Share on other sites More sharing options...
Alex Posted June 4, 2010 Share Posted June 4, 2010 parse_url strpos Link to comment https://forums.phpfreaks.com/topic/203822-check-for-www/#findComment-1067628 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.