Is there a way to get the URL of a page without actually typing it out and then store that in a variable $url?
If so, how can I strip the URL? For example: say the URL is: www.blah.com/ken2k7/page1.php
Say I want to get the ken2k7 part and store that into a variable $user, how would I do that? And the URL won't always be that, it can be www.blah.com/newuser/page2.php
I just need an efficient way to get the name. Thanks in advance.