Date: 11/05/99
- Next message: Alan Lee: "RE: [PHPLIB] Fatal error with MySQL"
- Previous message: Shan Vosseller: "Re: [PHPLIB] Fatal error with MySQL"
- In reply to: Eric Ries: "[PHPLIB] username => uid via URL"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] changelog available_"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The easy way to do this IMHO is to make the URL something like
www.mydomain.com/users/uid
and then in your apache conf add
<Location /users>
ForceType application/x-httpd-php3
</Location>
Then you can create a php script called just users and it can grab the
uid from $PATH_INFO.
Eric Ries wrote:
>
> Greetings all. I have a problem that I think can be pretty easily solved
> using Apache + PHPLIB, but I have not been able to find a solution on the
> web anywhere. Here goes:
>
> I'd like for someone to be able to have their profile on my site (stored
> using PHPLIB in a MySQL database) be addressable by its very own URL.
> If anyone has used mp3.com, they have a very similar setup. The idea is
> this:
>
> I am user "foobar" and I access my web page with a special URL, namely:
>
> www.mydomain.com/foobar
>
> Alas, apache interprets this as a request for a file named foobar. Of
> course, I could always do:
>
> www.mydomain.com/blah.php3/foobar
>
> but that is much more annoying to type in.
>
> I'd much rather just have apache to the translation, so that
>
> www.mydomain.com/foobar
>
> becomes
>
> www.mydomain.com/script.php3?uid=<foobar's uid>
>
> any ideas on how to do this?
>
> Thanks
>
> Eric
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Alan Lee: "RE: [PHPLIB] Fatal error with MySQL"
- Previous message: Shan Vosseller: "Re: [PHPLIB] Fatal error with MySQL"
- In reply to: Eric Ries: "[PHPLIB] username => uid via URL"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] changelog available_"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

