localhost Posted July 27, 2006 Share Posted July 27, 2006 How would I use str_replace with this:$SITE_URL = "http://system.dotomega.com";In another file I included config.php which has that variable.I want to use str_replace to remove http:// and replace it with nothing. Quote Link to comment https://forums.phpfreaks.com/topic/15765-use-str_replace/ Share on other sites More sharing options...
rab Posted July 27, 2006 Share Posted July 27, 2006 [code]include "config.php";$site_url = str_replace("http://", "", $SITE_URL);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/15765-use-str_replace/#findComment-64452 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.