you see, i have unlimited subdomains, had my script running before with php subdomain creation code but it made my surver untity, i had a folder for each user an had the surver create a php page with notice and link redirecting them to theyr sites, and i dont want it like that, but thanx for the url, ill have a look at it now.
Read about "wildcard dns" on google, there is no need to even create any sub domains.. The mod rewrite method explained in the topic amy showed will still require real subdomains to exist or will cause a 404 error.
No bro im strugling lol call me stupid but for once im stuck actually very confused
If you want to do it without actually creating the subdomains you must learn about "wildcard dns" i had this same issue with a short url script i made.
If wildcard dns is enabled on a domain you will still land at the homepage even if you type blahhhhh.mysite.com you can then use php to check the requested url and redirect it based on the subdomain typed.
As i said just learn about it, wildcard dns is hard for me to explain, you will get far better info from google. You will need to get your host to enable it unless you have shell access as far as i know.
I can't really give a good code example without posting most of a personal script sorry.