Re: Newbie Question: How to pass URL info to .php script ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>";

?>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux