I have a question that I can't seem to find a satisfactory answer to by searching the site, and I'm not entirely sure I am searching with the correct keywords.
Anyway, here goes.
I am working on a free membership script, and would like to use the members username as part of the url.
What I would like is for it to be
I know this format is for sub-domains, and if I had a way to automate the creation of a sub-domain for each member, I would do that, but my host says that I can't do that.
So, what I would like to see happen is for it to go to the index page of domainname.com, and extract that username to be assigned to a variable, so that from that point on it would be carried through the site in a session variable.
I guess basically my questions are:
Will it get to the domainname.com/index.php and is there a way to take the username from the front of the domain name?
If this is possible, what I need to know is how to extract just the username on the index page and assign it to a variable, and where should that happen?
The page will start out with:
session_register("memid_session"); (this is a guess on my part)
Hope all this makes sense, and that there is a simple solution, even if it is totally different then what I am asking.
I would just like to avoid appending the username to the end of the url and using mod_rewrite to capture it. (for alot of reasons including not understanding mod_rewrite).
Thanks in advance.