On Tue, 16 Jan 2001, William Bailey wrote:

> Hi,
>       Is there a way to pass variables as 'friendly' urls? So instead of
> haveing a url like www.blah.co.uk/profile.php?team=tigers i could have
> www.blah.co.uk/profile.php/team/tigers which would call profile.php and set
> team to tigers.
>       I've been playing with it but i can't seem to get it to set the
> variables. It will run the script (profile.php) but the variable $team if
> still unset.
>
> Thanks,
>       William.
>

If you're using Apache one way of doing it is using the all-powerful
mod_rewrite. That way you could request http://www.example.com/team/tigers and
it could automagically get converted to
http://www.example.com/profile.php3 with $team set to "tigers".

-- 
Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to