help with $_SERVER['SERVER_NAME']
Posted 02 May 2006 - 03:03 PM
I'm using $baseurl = $_SERVER['SERVER_NAME'] to get the URL on my site. Now I want to have a way to say if anywhere in $baseurl it says "yaddayaddayadda" then ..., else ....
substr is not good because I need to know where to begin for the string to be at. I just want to say is "yaddayaddayadda" anywhere in the String $baseurl
Posted 02 May 2006 - 03:12 PM
Posted 02 May 2006 - 03:17 PM
I actually just found eregi(), but I also like strpos() as an alternative.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users