On Tue, 2 Jul 2002, Richard Lynch wrote:
> If you can't do .htaccess, for whatever reason, second-best choice is:
> 
> <A
> HREF=download.php/filenameyouwant.doc?filename=filenameyouwant.doc>Download<
> /A>
> 
> Apache and PHP are gonna ignore the bogus /filenameyouwant.doc part, while
> the browser stupidly believes that's what it surfed to, since it looks like
> the "end" of the URL.

Why not do

  <a href='download.php/filenameyouwant.doc'>download</a>

and then in download.php, just set

  $filename = substr($_SERVER['PATH_INFO'], 1);

...?

miguel


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

Reply via email to