generaly I use an ErrorDucment directive in the httpd conf file the this
document will look at the url and do the apropriate thing.
You can also do something like
http://johndoe.mysite.com
have the index.php page look at the host name (johndoe) and send the
apropriate contents
just do something like this in the httpd conf files
ServerAlias *.mysite.com
DocumentRoot /vhost/mysite/users/
and in dns
* IN CNAME www
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Dave" <none> wrote in message
news:4059b797$0$23214$c3e8da3@news.astraweb.com...[color=blue]
> How does one go about creating personalised URLs
>
> What I want is for the user to go to
www.mysite.net/johndoe where johndoe[/color]
is[color=blue]
> a record in MYSQL & then generate an html page on the fly populating the
> page with the fields from his record that will say something like "Welcome
> John Doe, thank you for visiting your own personal page etc...."
>
> What I dont want to do is have thousands of html pages sitting on the[/color]
server[color=blue]
> waiting for the prospective users to access their pages. It would be a
> generic page with certain fields I would like to populate with the[/color]
specific[color=blue]
> data when requested.
>
> The bit that I can't figure out is how to get a request for
>
www.mysite.net/johndoe to make this happen without tagging johndoe as a
> variable eg www.mysite.net/$USER=johndoe
>
> Any ideas?
>
> Thanks
>
> Dave
>
>
>[/color]