Pass a relative path [with slashes] into a 'clean' url

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

 



What is a good/accepted way to pass a relative or absolute path into a clean url ?

I could replace the relative url's slashes with another character, but would love to know a cleaner less confusing way...if it exists


example url:
http://localhost/testscript/../image.png/jpeg/420000/0/

example php:
list($dummy,$relative_path,$type, $color, $cache) = explode('/', $_SERVER['PATH_INFO']);


where:
$relative_path=../image.png
$type=jpeg
$color=420000
$cache=0


many thanks in advance

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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