Re: [PHP] Variables in 'friendly' urls

2001-01-16 Thread Ignacio Vazquez-Abrams
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. >

Re: [PHP] Variables in 'friendly' urls

2001-01-16 Thread Tim Zickus
You need to parse some of the environment variables to get this data, $pathArray = explode("/",$HTTP_SERVER_VARS[PATH_INFO]) seems to be particularly helpful. Put a call to phpinfo() into your file and see what's there. - Tim > Is there a way to pass variables as 'friendly' urls? So instead o

[PHP] Variables in 'friendly' urls

2001-01-16 Thread William Bailey
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 g