Re: Newbie Question: How to pass URL info to .php script ?
| From: | Chris Scott | Date: | Thu, 19 Jun 2008 08:21:09 +0000 |
| Subject: | Re: Newbie Question: How to pass URL info to .php script ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275581@lists.php.net to get a copy of this message | ||
You could just use an apache (or other web server) alias:
www.test.com/article -> www.test.com/article.php
where article.php uses:
<?php
$uri_vars = explode('/', $_SERVER['PATH_INFO']); foreach ($uri_vars as
$var)
if ($var != "")
echo $var . "<br>";
?>