How to pass variables to php functions from url's?
| From: | Martin Lindhe | Date: | Fri, 07 Sep 2001 10:14:22 +0000 |
| Subject: | How to pass variables to php functions from url's? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66369@lists.php.net to get a copy of this message | ||
I need to solve the following problem, but I can't figure out how:
Let's assume we have a server called www.test.com
When a user access http://www.test.com/path/username,
I want a php script to execute, as if the url entered was
http://www.test.com/path.php?value=username.
I'm running PHP 4.0.6 on Apache 1.3.20.
I've looked at both PHP and Apache documentation about this, but
i havent found any information or examples on how this could be solved,
so I'm asking the question here in hope for help.
Thanks!
/Martin Lindhe